middy online with Winfy

We have hosted the application middy in order to run this application in our online workstations with Wine or directly.


Quick description about middy:

Middy is a very simple middleware engine that allows you to simplify your AWS Lambda code when using Node.js. If you have used web frameworks like Express, then you will be familiar with the concepts adopted in Middy and you will be able to get started very quickly. A middleware engine allows you to focus on the strict business logic of your Lambda and then attach additional common elements like authentication, authorization, validation, serialization, etc. in a modular and reusable way by decorating the main business logic. One of the main strengths of serverless and AWS Lambda is that, from a developer perspective, your focus is mostly shifted toward implementing business logic. Anyway, when you are writing a handler, you still have to deal with some common technical concerns outside business logic, like input parsing and validation, output serialization, error handling, etc.

Features:
  • Using middy is very simple and requires just few steps
  • Write your Lambda handlers as usual, focusing mostly on implementing the bare business logic for them
  • Import middy and all the middlewares you want to use
  • Wrap your handler in the middy() factory function
  • Attach all the middlewares you need
  • Middy implements the classic onion-like middleware pattern, with some peculiar details


Programming Language: JavaScript.
Categories:
Frameworks, Cloud Services

©2024. Winfy. All Rights Reserved.

By OD Group OU – Registry code: 1609791 -VAT number: EE102345621.