Small updates act as game changer for calling API's!
There is a reason for memes like this to exist (source: slideshare.net )

Small updates act as game changer for calling API's!

If you work with analytics or data engineering, you have likely encountered the issue of getting data for analytics out of an API (yes/no?) Sometimes calling an API can be a hassle. Issues usually arises through scheduling, authenticating, parsing, transforming or loading the data. You will likely need an external service to handle the call, and the runtime environment for it. Grieve no more!

Recently Snowflake announced a wealth of fresh features... Some of the smallest announcements made on that day, was SECRETS and EXTERNAL ACCESS INTEGRATION. I did not think much of them at first, but these act as GAME CHANGERS, when used in combination with USER DEFINED FUNCTIONS (UDF) for accessing API endpoints.

Previously UDF's acted mainly on objects within Snowflake data cloud, but in combination with the secrets and external access, a Snowflake UDF can now be allowed to access external endpoints with a key (e.g. a REST API).

  • The secrets can hold password, key, token or strings for authentication.
  • The external access integration allows a specific address to be accessed, through a network rule.


Of course every API is a bit different, but I can now call an external public API and retrieve a auth token, and use the token to retrieve records back in a json object - all from within Snowflake, bypassing cloud functions, repositories, runtime environments, virtual network setup, key vaults from a cloud a provider.

This simplifies data load immensely for getting data out of API's, and maybe with a bit of tweaking, also direct database connections using UDF's.

The code for creating the objects getting a token from an API can be accessed here.

Happy Birthday Rune Bendix Wittchen ????

回复
Rie Wittchen

Databaseansvarlig hos Boligforeningen AAB | Kvinder i Fodbold

1 年

Smoooth m?de lige at fejre sin 40 ?rs p? LinkedIn?? ??

Alexandre Ganz

AI Partner @ Novo Nordisk | 4x Azure, 2x AWS Certified | Solutions Architect | Pre-Sales

1 年

Happy birthday Rune! Indeed, calling API’s is definitely a way to celebrate ?? Jokes aside, whishing all the best!

Marc Sch?nwandt

Senior Manager - Data & Analytics Team

1 年

Dét m? pr?ves! (Ogs? det med at blive 40)

Jakob Saugbjerg Kristensen

Consultant @ Devoteam Data Driven

1 年

Tillykke med f?dselsdagen Rune ????

要查看或添加评论,请登录

Rune Bendix Wittchen的更多文章

社区洞察

其他会员也浏览了