The Cloud Native Computing Foundation (CNCF) defines cloud native through the characteristics of the systems. According to it, they are loosely coupled and interoperate in a way that is secure, resilient, manageable, sustainable, and observable. As typical techniques, the definition names containers, microservices, immutable infrastructure, serverless, and declarative APIs, among others. Cloud native therefore refers to a way of building software. For development, it follows that a cloud-native application consists of parts that can be delivered and scaled individually. Its processes are stateless, persistent data resides in attached services such as a database, object storage, or a queue, and the configuration comes from the environment. The Twelve-Factor App methodology describes these principles as well.
What is serverless computing, and what is a function?
With serverless computing, the cloud provider provisions and manages the servers, and capacity adjusts automatically to demand. A common form is function as a service. Here, the platform runs a function as soon as an event occurs, such as an HTTP call, a message in a queue, or a newly stored file. At AWS, this service is called Lambda, and at Microsoft it is Azure Functions. A function handles one clearly defined task, and its state is not reliably preserved between two invocations. AWS Lambda provides managed runtimes for Java, Python, Node.js, .NET, and Ruby, and Go programs run as a compiled binary in an OS-only runtime. A function is deployed as a ZIP archive or as a container image.
How are serverless, microservices, and containers related?
The three terms sit at different levels. Microservices are an architecture style in which an application is broken down into independent services, each of which takes on one business task and can be delivered, updated, and scaled individually. Serverless is an operating model, and the container is a format for packaging and execution. A microservice can therefore be operated as a continuously running container or consist of a group of functions. Which form fits follows from the task. A service that continuously answers requests or keeps connections open is well placed in a container. A function is suited to work that is triggered by an event and completed after a short time. In many applications, both exist side by side. Our articles on Docker and Kubernetes explain the fundamentals of containers.
Where is the difference between cloud-native development and cloud migration?
An application runs in the cloud as soon as it is operated there. The AWS migration strategies call the move without changes to the application rehost, while the refactor path restructures the architecture so that the application takes full advantage of cloud-native features. Both paths have their place. Cloud-native development starts with the design. From the beginning, the application uses what the environment provides, such as managed queues, object storage, and databases. The DevOps Consulting page describes how an existing application becomes cloud-ready and reaches the cloud through a pipeline and containers. The Software Modernization page covers the restructuring of applications that have grown over time.
The archive migration of a photo agency shows how cloud services work together in a project. Over 60 million images, 60 terabytes, moved from on-premises NAS systems to the AWS Cloud while day-to-day business continued. At the destination, Amazon S3 holds the archive, and Elasticsearch handles indexing. We wrote the Lambda functions that trigger the downstream processing there. The project stack also includes SQS, DynamoDB, and API Gateway. More than eight Mule services orchestrated the migration and monitored every process step, and a registry tracked every asset until it was confirmed in S3. The migration architecture was our responsibility, and infrastructure and operations were the responsibility of the client. It was an integration project with MuleSoft. We bring the experience with processing pipelines, throughput, and traceability to cloud-native development.