Skip to main content

What is cloud-native? what is the correct way to create and deploy cloud-native?

 1. What is cloud-native?


Cloud-native is a distributed cloud-based on distributed deployment and unified operation and management, and a set of cloud technology product systems based on technologies such as containers, microservices, and DevOps.

We split the noun into two parts—cloud and native. Cloud is relative to local. Traditional applications run on servers in local computer rooms, while cloud applications run on cloud (such as IAAS, PAAS, and SAAS). ). Native means native and home-grown, that is, the application is based on the cloud as soon as it is born, and can be run directly on the cloud platform or easily migrated to the cloud platform. We can define cloud-native in this way: it is a new technology system and the future development direction of cloud computing.
For cloud-native applications to run on cloud platforms, they must have the characteristics of the cloud, such as elastic scaling, distribution, rapid deployment, rapid iteration, high efficiency, and continuity. This is more than simply migrating applications originally on physical servers to virtual machines, not just infrastructure and operating platforms on the cloud, application architecture, application development methods, application deployment methods, and application maintenance methods must all be changed.

2. what are the core elements of cloud-native?


The four core elements of cloud-native are microservice technology, DevOps, continuous delivery, and containerization. Microservice technology makes applications atomic, and all applications can be deployed and iterated independently. DevOps enables applications to quickly compile, automate testing, deployment, release, rollback, and integrate development and operations. Continuous delivery allows applications to be released frequently, delivered quickly, with fast feedback, and reduced release risk. Containers enable the overall development of applications to be based on containers, forming code component reuse and resource isolation.

1. Microservices


A microservice is an independently released application service, which can be upgraded, grayscale, or reused as an independent component. Each service can be completed by a dedicated organization. The relying party can fully develop it as long as the input and output ports are determined. The organizational structure of the team is more streamlined, the communication cost is low, and the efficiency is high.

2. DevOps


DevOps is literally a combination of words - Dev, Ops, i.e. developers, operators. In fact, DevOps is a general term for a set of processes, methods, and systems. DevOps emphasizes how efficient organization teams can complete the declaration cycle management of software through automated tool collaboration and communication, so as to deliver more stable software faster and more frequently.

3. continuous delivery


Agile development requires continuous delivery because agile development requires that a version be available to a large group of environments at any time, so continuous delivery is required. The purpose of continuous delivery is to quickly respond to changes in customer needs, requiring very frequent releases, so there will be situations where multiple versions provide services at the same time, so it is necessary to support grayscale release/canary release, etc.

4. containerized


Docker is the most popular software container project in the software industry. Docker plays the role of application isolation, moving to a new, undifferentiated running environment for microservices and all the configurations, dependencies and environment variables required by them, with strong portability. However, docker does not consider the deployment and arrangement of distributed applications and has not proposed a better method for network and storage methods, including docker-compose.

3. what is the correct way to create and deploy cloud-native


Step 1: Your code is placed on a cloud code platform instead of a privately deployed Git platform within your company. That's why Microsoft is paying big bucks to acquire Git. This is the first step. Why you do this, you'll see next. Anyway, when you are developing specific business applications based on cloud computing, big data, artificial intelligence, and IOT, you rely heavily on open source platforms, so just how high is the technical threshold can your specific business application be. And after Microsoft took over git, the security protection and backup of enterprise code is much higher than your own administrator and operation and maintenance skills.

Step 2: Use a cloud development platform. This development platform can be based on a web browser or a local VS Code IDE, but the core essence of the cloud development platform is: you don't need to install so many dependent frameworks locally, you write applications in the IDE, and you open Git on the cloud A source code file on the platform is imported into a package, and then the API is called directly in the IDE. This cloud development platform will automatically complete the API, you can save the code, you can compile the code, you can debug the code, and you can run The code is the same as your local, but the application runs in the cloud, and the application is packaged, installed and deployed in the cloud.

Step 3: Use cloud service OpenAPI. Cloud computing vendors open up all cloud services to open APIs, and you can directly call the APIs in all Open API open platforms of this cloud computing vendor on this cloud development platform. These cloud services will be responsible for their own installation, deployment, upgrade, monitoring, backup, migration, etc.

From the comparison chart of traditional cloud service and cloud development model, we can see that traditional cloud requires developers to pay attention to back-end servers, such as databases, file storage, load balancing, remote disaster recovery, network protection, etc.; while the cloud development model weakens the back-end and With the concept of operation and maintenance, you only need to focus on business logic to complete the development of WeChat mini-programs/mini-games, official accounts, Web, and mobile applications, which not only greatly reduces the development threshold of applications, but also saves developers development and deployment and maintenance costs.

4. what are advantages of cloud-native


Combining the above content, I have sorted out some advantages of cloud-native for you:

1. Quick launch

For example, the company already had a website and an APP before, but now the mini-program is very popular. Many companies like to develop a mini-program of their own, and the development of the mini-program cloud can help us go online in the shortest time.

2. Focus on business logic

In the cloud development mode, we no longer need to care about the problems of front-end and back-end joint debugging and communication, and we also do not need to consider the problems of operation and maintenance behind. The overall complexity and cost of the project will be greatly reduced.

3. Improve development efficiency

In the traditional development model, the front-end needs the cooperation of a back-end to complete a complete applet project, but the cloud development model provides a very rich API interface. Through these APIs, we can easily realize the storage of data and the upload of files. Such operations have greatly improved our development efficiency. No need to learn a new language, just master javascript.

4. No operation and maintenance, cost-saving


5. Elastic scaling

When performance requirements continue to increase, cloud development can elastically scale performance

6. Data Security

You can have your own independent database, and you can set database permissions

Comments

Popular posts from this blog

Defination of the essential properties of operating systems

Define the essential properties of the following types of operating sys-tems:  Batch  Interactive  Time sharing  Real time  Network  Parallel  Distributed  Clustered  Handheld ANSWERS: a. Batch processing:-   Jobs with similar needs are batched together and run through the computer as a group by an operator or automatic job sequencer. Performance is increased by attempting to keep CPU and I/O devices busy at all times through buffering, off-line operation, spooling, and multi-programming. Batch is good for executing large jobs that need little interaction; it can be submitted and picked up later. b. Interactive System:-   This system is composed of many short transactions where the results of the next transaction may be unpredictable. Response time needs to be short (seconds) since the user submits and waits for the result. c. Time sharing:-   This systems uses CPU scheduling and multipro-gramming to provide economical interactive use of a system. The CPU switches rapidl

What is a Fair lock in multithreading?

  Photo by  João Jesus  from  Pexels In Java, there is a class ReentrantLock that is used for implementing Fair lock. This class accepts optional parameter fairness.  When fairness is set to true, the RenentrantLock will give access to the longest waiting thread.  The most popular use of Fair lock is in avoiding thread starvation.  Since longest waiting threads are always given priority in case of contention, no thread can starve.  The downside of Fair lock is the low throughput of the program.  Since low priority or slow threads are getting locks multiple times, it leads to slower execution of a program. The only exception to a Fair lock is tryLock() method of ReentrantLock.  This method does not honor the value of the fairness parameter.

How do clustered systems differ from multiprocessor systems? What is required for two machines belonging to a cluster to cooperate to provide a highly available service?

 How do clustered systems differ from multiprocessor systems? What is required for two machines belonging to a cluster to cooperate to provide a highly available service? Answer: Clustered systems are typically constructed by combining multiple computers into a single system to perform a computational task distributed across the cluster. Multiprocessor systems on the other hand could be a single physical entity comprising of multiple CPUs. A clustered system is less tightly coupled than a multiprocessor system. Clustered systems communicate using messages, while processors in a multiprocessor system could communicate using shared memory. In order for two machines to provide a highly available service, the state on the two machines should be replicated and should be consistently updated. When one of the machines fails, the other could then take‐over the functionality of the failed machine. Some computer systems do not provide a privileged mode of operation in hardware. Is it possible t