https://s3-us-west-2.amazonaws.com/secure.notion-static.com/45b98126-c91d-47b0-bcd5-445c4e51bc67/MSAzure-functions.png

배경


작년 중순부터 진행하던 프로젝트의 인프라는 Go언어를 기반으로 Serverless 환경이 필요 했지만,

하지만 작년 중순까지만해도 Azure Functions는 Go언어를 공식 지원하지 않았고

(작성시점에도 아직 Azure Functions 에서는 Go 언어를 공식지원하지는 않는다.)

Azure Functions에서 지원되는 언어

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dce3f294-254d-45f4-aba9-5dcfc56b9f27/Untitled.png

그에 따라 그나마 자료가 많은 AWS로 프로젝트를 시작하였으나, Azure에 대한 아쉬움이 남아있었습니다.

그렇게 AWS Lambda로 개발을 진행하던 중 올해 3월경 Custom Handler 미리보기를 공개하여 이를 통한 Functions에서의 Go언어 사용이 가능해 졌습니다.

Azure Functions custom handlers (preview)

https://media.giphy.com/media/dYZuqJLDVsWMLWyIxJ/giphy.gif

자세한 내용은 생략하고 실제로 사용해보겠습니다.

Hello, World! 만들어보기