.

With technological advances in the cloud, it is possible to develop complete, stacks of Web apps using cloud-native technologies often referred to as serverless. The fastest way to develop an application is the “serverless monolith” approach, but this can quickly be exaggerated, so it is a natural decision to continue with “serverless microservices.” [Sources: 1]

.

The Serverless Monolith is built using AWS and a single AWS lambda function as the backend. The concept of server-less introduces computing services that allow you to run your code without deploying or managing servers. [Sources: 1, 5]

.

This has become a critical element of modern application development, and is supported by a number of AWS services such as AWS Lambda and AWS CloudFront to help customers optimize the resources of their secret sauce by shifting their undifferentiated tasks to AWS. [Sources: 5]

.

When we decided to focus on innovation and dramatically scale Amazon.com, we restructured our monolithic applications, restructured our organization, optimized for the cloud, and optimized our cloud. Go to serverless frees us from the focus on the activities that characterize our company, such as customer service, product development, customer service, marketing and sales. [Sources: 5]

.

For customers who start with applications hosted on premise, the most common approach is to move the application to the cloud and upload it. [Sources: 5]

.

Then many customers start to use managed services in the cloud to move things like databases and API management to AWS to focus on their business logic. Function as a Service (FaaS) has become a method of building cloud-based applications without building and maintaining infrastructure. As a result, more and more customers are reinventing themselves by building new applications as serverless microservices that allow their businesses to take full advantage of the cloud. [Sources: 4, 5]

.

Server-less architecture refers to applications that are heavily dependent on third-party services (known as Backend as a Service (BaaS)) and execute custom code in ephemeral containers. We have implemented our FaaA use case with an AWS lambda solution that includes API gateway, swagger and serverless framework. [Sources: 4]

.

With this idea, such an architecture always removes the traditional end — on a server system that sits behind the application and shifts behavior forward. [Sources: 4]

.

To help, I decided to publicly document the process of migrating my production app from a server-based architecture to a serverless one on AWS. I have converted a monolithic server-based system to a “serverless” architecture for microservices. People do that, not only for genuine paying users, but also for their friends and family members. [Sources: 3]

.

I have created a proof of concept on AWS Lambda using the Serverless Framework. I will use this proof-of-concept to judge whether or not I want to continue with a server-less approach. Server less suite with AWS, and then a full-fledged version of it on the AWS Cloud Platform. [Sources: 3, 6]

.

In the course of this series I will delve into the basics of the Serverless Framework, as well as some of its more advanced features and functions. [Sources: 6]

.

In this section I will set the scenery for the rest of the series, but you will need a lot of details. Once you understand the overall picture of migration, I will go over each section to find out what has been most successful in terms of performance, scalability, cost, and other important factors. [Sources: 0, 6]

.

Migration strategy involves updating your infrastructure components and architecture with cloud-managed offerings. The suitability of each option depends on the number of code parameters, the functionality available, and other factors such as cost and performance. [Sources: 0]

.

An example would be if you were to swap your self-managed MySQL deployment in multiple regions for a managed cloud SQL data storage. At the end of this article you will learn how to create and run an HTTP lambda-based API using the Serverless Framework on AWS. I suggest you read this for the concepts you should understand before you try it. If you haven’t worked with server less yet, it’s a good starting point for those of you who have done it. [Sources: 0, 6]

.

However, the core of the system is still a monolithic Express-js app with a web portal API that runs as a container on AWS ECS. In this series, we will show how to perform a real production migration by moving a NodeJS application to a new serverless environment on the AWS EC2 EC3 cluster with the Serverless Framework. [Sources: 3, 6]

.

The transition from a stable production system to a new architecture should not be taken lightly. Unlike the migration of a traditional server-based app as a container, where changes are generally limited to the infrastructure level, migration to serverless requires a comprehensive revision of the existing code base. The current coding base has accumulated technology debt, making it difficult to make changes in certain areas. [Sources: 3]

.

I think AWS Lambda has some interesting features and in general Serverless has grown strongly and the reduction of infrastructure costs for some use cases looks good. Today I would like to share with you some of the experiences I have had. ve had lambda in the last 2 years with serverless solutions such as microservices and remediation with AWS. There are some lessons I wanted to share today, but not all of them in this post. [Sources: 2]

.

Sources:

.

[0]: https://www.mode2.com/whitepapers/modernize-with-serverless/

.

[1]: https://blog.bitsrc.io/building-a-serverless-webapp-why-you-should-consider-the-monolith-4f0105935589

.

[2]: http://diego-pacheco.blogspot.com/2018/04/lessons-learned-using-aws-lambda-as.html

.

[3]: https://serverlessfirst.com/serverless-migration-journal/

.

[4]: https://blogs.captechconsulting.com/blogs/applying-microservice-patterns-best-practices-to-faas-part-1-faas-overview

.

[5]: https://www.allthingsdistributed.com/2019/08/modern-applications-at-aws.html

[6]: https://www.thedevcoach.co.uk/restful-api-serverless-framework/