Microservices
Microservice is a low-coupling architecture that can be achieved by refactoring a monolithic application, that is, turning in-proc application components into self-contained networked services suitable for being deployed in scalable or elastic containers or serverless environments.
Hosting Environment
Microservices can be deployed in two approaches: containerization and serverless.
Containerization (Docker hosts or nodes)
Containerization is used to bundle an application or feature of an application, all of it dependencies & its configuration in a container image. This image is deployed on the host operating system and bundled application works as a unit.
This concept of container images allows us to deploy these across environments with little or no modifications at all. This way it is easy to scale out microservice quickly as the new containers can be easily deployed for short term purposes.
Docker will be used to add containerization to our microservice. Docker is an open-source project for creating containers that can run on docker host either on cloud or on-premises.
Serverless (FaaS)
Microservice features “scalable” but can lead to the high complexity of the management of microservices because of fine-grained interfaces. An API gateway or facade mitigates this issue.
Serverless reduces the burden of installing and maintaining servers as the hosting environment. AWS Lambda, an offering of Function As a Service (FaaS), is one of the most well-known cloud services as serverless computing.
References
- Kubernetes vs. Docker: A Primer
- Serverless in Node.js: Beginner’s guide
- Serverless architecture in Node.js: Case study of an open-source app
- Serverless and Microservices: a match made in heaven?
- Microservice deployment using containers
- What Is a Serverless Microservice? | Serverless Microservices Explained
- Serverless Microservice Patterns for AWS
- Microservices with ASP.NET Core 3.1
$29.99 to buy one and get TWO! until Aug 27, 2020.
- The Effective CISSP: Security and Risk Management ($29.99/paperback) is now $20!
- Pre-order The Effective CISSP: Practice Questions (Kindle) for $9.99.
Click the following cover pages to buy on Amazon!
Pingback: What Is API? by Wentz Wu, CISSP-ISSMP,ISSAP,ISSEP/CCSP/CSSLP/CISM/CISA/CEH/PMP/CBAPWentz Wu
Pingback: 微服務、容器化和無服務器(Microservices, Containerization, and Serverless) – Choson資安大小事