This article should help you learn how to build an API without a server by using Go language. The author, Tom Maiaroto, built Aegis, an open source framework and deploy tool that uses a RESTful API, aiming to simplify, scalate, and speed up development. He compared Azure functions with AWS Lambda, finding that Azure conveniently offers an URL to call a functions, supporting any HTTP methods.
Look at this image below:
With efficiency in mind, Tom uses AWS Lambda in combination with API Gateway in Go language. By using Aegis (his framework to write APIs), the goal is to use only one command to deploy an scalable API.
Additional benefits of using Aegis include:
- Single command deploys/updates for your API
- A single AWS Lambda to handle each API
- A “router” that will allow you to write your API in a more familiar way
- POST form-data support
- API response cache support
The way to run Aegis is by include aegis init to create a starter app and configure. Then, you can run Aegis in a ~/.aws/credentials file and deploy from your directory to Amazon. You will see the endpoint URL in the terminal and it won’t be necessary to login to AWS console.
Learn more from the original article, where Tom, a talented full stack product architect, talks about the future of serverless APIs and microservices.