I am trying to learn how to work with AWS in the last few days, because I want to deploy some APIs.
So far, I was learning how to use API Gateway with Lambda Functions and it seemed like a nice workflow. But, because I am writting my APIs with flask-restplus, I tried the Zappa framework which uses EventBridge (CloudWatch Events) as a trigger for each Lambda Function I create.
So my questions are:
- What is the difference between EventBridge and API Gateway and when should I use each one?
- While working with API Gateway I realised that the best practise was to create a different Lambda Function for each API and theN connect it to the Gateway. So, is a good idea to upload as a Lambda Function the whole python file? (where all the API routes are written there) or should I do a procedure for each API?
Thank you in advance.