The Inner Circle

 View Only
  • 1.  How are serverless and microservices architecture related?

    Posted Mar 16, 2022 01:44:00 PM
    Edited by Orbert Reavis May 11, 2022 08:37:21 AM
    Hi everyone,
    I was curious what the main differences are between serverless and microservices architecture? Could someone give me a quick summary of each one and how they are related to one another?

    Thanks in advance!
    Elisa

    ------------------------------
    Elisa Morrison CCSK
    Website Strategist
    CSA
    ------------------------------


  • 2.  RE: How are serverless and microservices architecture related?

    Posted Mar 17, 2022 09:51:00 AM
    Hi Elisa

    Serverless and Microservices are 2 different things. "Microservices" is a way to design an application, whereas "Serverless" is a way to launch an application.
    "Serverless" is a cloud service where you don't need to configure or manage the server infra (serverless does not mean no servers) while launching . So the servers are managed by 3rd party such as AWS Lambda service by AWS cloud service. On the other hand, Microservices architecture (MSA) is an application architecture where the applications are broken down into loosely-coupled modules packaged in Containers. So MSA allows a large application to be separated into smaller independent parts and they communicate via API's. The advantage of MSA design is that if any one of the microservices malfunctions, the other parts of the software still functions. MSA is very useful for large scale application dev.

    ------------------------------
    Zahir Siddique
    Director
    Johnson Controls Inc
    ------------------------------



  • 3.  RE: How are serverless and microservices architecture related?

    Posted Mar 17, 2022 03:03:00 PM
    Thanks Zahir! This was helpful :)

    ------------------------------
    Elisa Morrison CCSK
    Website Strategist
    CSA
    ------------------------------



  • 4.  RE: How are serverless and microservices architecture related?

    Posted Mar 17, 2022 10:15:00 AM
    Edited by Marina Bregkou Mar 17, 2022 10:20:47 AM
    Hi Elisa,

    To put it in simpler words:

    Serverless is preferred when cost and a quick deploy-to-market are priorities.

    But when an organization wants to build a large, complex application where the product is expected to evolve and change, then microservices is a more practical option.

    Alternatively,  it is also possible to combine both these solutions within a single cloud-native instance.

    That being said, there are quite some differences between the 2, like for example:

    • Microservices is used to develop many different applications by the help of container. 
    • Serverless is an environment which is used to execute the  code anyway anywhere.
    • It is a type of SOA (Service Oriented Architecture).
    • Serverless is a type of cloud computing model.

    • Microservice have the technologies within cloud-based environment. 
    • Serverless function are only a way to host microservices.
    • Microservices is a way to create an application. 
    • Serverless is a medium or lets say another way of running an application.

    • Microservices need to run constantly. 
    • In Serverless, applications would be better deployed inside the containers.
    • It has very mature function. 
    • Serverless has less mature function as compared to microservices.
    • Plenty of solutions can be monitored and managed in microservices applications. 
    • Monitoring and log management can be more difficult in serverless.


    Does this help?
    Kind regards,

    Marina
    ------------------------------
    Marina Bregkou,
    Senior Research Analyst,
    CSA
    ------------------------------



  • 5.  RE: How are serverless and microservices architecture related?

    Posted Mar 17, 2022 03:04:00 PM
    Hi Marina!
    Thank you. Yes this helps! :) Thanks for the side by side comparison list!

    ------------------------------
    Elisa Morrison CCSK
    Website Strategist
    CSA
    ------------------------------



  • 6.  RE: How are serverless and microservices architecture related?

    Posted Apr 25, 2022 07:10:00 AM
    In serverless architecture, the application is divided into smaller components that can be deployed and managed independently. Each component is designed to perform a specific task and is usually invoked in response to an event. This allows for greater flexibility and scalability, as well as lower costs.
    Microservices architecture is similar in that it also involves breaking down an application into smaller components. However, each microservice is a self-contained unit that can be deployed and invoked independently. This allows for greater flexibility and scalability as well as less complexity.

    ------------------------------
    Rowan Sheridan
    it
    it
    ------------------------------



  • 7.  RE: How are serverless and microservices architecture related?

    Posted Apr 25, 2022 10:33:00 AM
    Hi Rowan!
    Thanks for the explanation, that helped provide additional context. I appreciate it!

    ------------------------------
    Elisa Morrison CCSK
    Website Strategist
    CSA
    ------------------------------



  • 8.  RE: How are serverless and microservices architecture related?

    Posted May 05, 2022 02:59:00 PM

    Serverless is a different execution/billing model. A serverless solution run only when it is triggered (response, events, schedule, ..). When the serverless service is not triggered, nothing is running. In the Serverless model you always pay for the storage but you pay the other resources only if the serverless service is invoked and for the time required to complete the request.

    Microservice is a software architecture practice where loose coupled logical services are deployed and run independently one another.



    ------------------------------
    Vittorio Garbellotto
    Cloud Architect
    MySelf
    ------------------------------



  • 9.  RE: How are serverless and microservices architecture related?

    Posted May 05, 2022 04:14:00 PM
    Ahh that additional context is helpful as well. So depending on what you need or how you use each one the two models could be more/less expensive.

    ------------------------------
    Elisa Morrison CCSK
    Website Strategist
    CSA
    ------------------------------