![]() ![]() Going back to our Lambda function, you will notice that the event object and callback function are very similar to Express's req and res object, in that they facilitate getting information about the request and returning a response to the client. Imagine a function that updates a database in a web application that is running on a server: function updateDatabase ( data ) ) AWS (Amazon Web Services) Lambda functions, which they added in 2018, means developers now have the freedom to run arbitrary backend code to support their website without having to leave Netlify.Īlthough I will be referring to only AWS Lambda functions in this post, I really mean the API Gateway API and Lambda integration, which Netlify Functions has abstracted away for us.Īll of the code & examples in this post can be found here. Not only was it an amazing service from the start, managing the hosting infrastructure so you can focus on putting your website together, but they have since added support for those looking to go beyond a static site. Netlify started off as a service for hosting static websites. ![]() Koa.js), stick around! The contents of this post should also apply to any web framework built upon Node.js's http module. If you are using another web framework (e.g. In this post, I will show how you can build an Express application on top of AWS Lambda functions, all within Netlify. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |