Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Build a cloud native e-commerce platform in five hours | KubeCon SOFAStack Workshop details

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

On June 25, 2019, at KubeCon China 2019, CNCF, a world-renowned open source organization, announced that Ant Financial Services officially became a gold member of CNCF. Ant Financial Services said that it would continue to increase its support for open source projects, including Kubernetes, Service Mesh, Serverless, secure containers, etc., and exert its own strength.

At this conference, Ant Financial also built a cloud-native e-commerce platform with hundreds of cloud native enthusiasts in five hours. How to do it specifically? Hopefully this article will provide some ideas.

KubeCon SOFAStack Cloud Native Workshop Site Map

Technology development in the past two decades: from centralized architecture to cloud native architecture

Technology has changed dramatically over the past decade or so, but let's take a quick look back: at the beginning of the 21st century, most enterprise applications were centralized. At this stage, enterprises begin to do some information construction work, such as cluster deployment (Tomcat cluster, Weblogic cluster) to ensure high availability of the system, and procurement of IOE (IBM, Oracle, EMC) and other commercial software and hardware products, through higher configuration, better performance and other ways to resist business growth.

Slowly, as the company expands, centralized architecture is no longer enough to support complex business systems, and many enterprises begin to do some system decomposition transformation, typical technologies such as SOA. As the system split, there was no longer a need to deploy services using expensive minicomputers, and virtual machine deployment became mainstream. Similarly, after the service database and storage no longer have to adopt commercial software and hardware solutions, enterprises to some open source solutions, such as Oracle replaced MySQL.

Although system splitting can bring many benefits, such as business cohesion, loose coupling between systems, easy to iterate quickly, etc. However, the following problems are also obvious, for example, more and more systems will be split, the interaction between systems will become more complex, the call link length may cause performance problems, there are many challenges to data consistency such as distributed data storage, and there are problems such as resource allocation and isolation after service. At this time, some virtualization and containerization technologies began to emerge, typical technologies are OpenStack and Docker, OpenStack helped us solve the construction and management problems of IaaS layer, and Docker gave us the best practices of resource isolation, but these did not solve some problems of complex operation and maintenance.

In recent years, some new cloud-native technology products and concepts have begun to appear, such as Kubernetes, Service Mesh, Serverless, etc., which can solve some practical problems of complex application deployment and operation and maintenance.

Ant Financial Services under Technology Development

Ant Financial began moving from a centralized architecture to a distributed architecture in 2007. We precipitated a set of finance-grade distributed architectures independently developed in the process of technology evolution over the past decade into SOFAStack™ (Scalable Open Financial Architecture Stack).

From 2007 to 2012, Ant Financial Services completed the modular and service-oriented transformation of all business systems. TCC mode solves the problem of data consistency caused by service and data splitting, and solves the problem of single point of service through registry.

After the completion of service transformation, with the increase of service cluster, the scalability of the system encountered a bottleneck. In addition, in order to meet the financial level attributes, Ant Financial Service put forward higher requirements for system availability and data consistency. Ant Financial began to explore a set of unitization ideas in 2013, and based on this, launched the ability of double living in the same city, multiple living in different places, flexible scheduling, etc. to ensure that the business does not stop and the data is not lost.

Later, with the rise of domestic Internet finance and the internationalization of Ant Financial Services, Ant Financial Services will also open up its own capabilities and technologies and exist in the form of cloud products on the financial cloud. Developers can quickly build a distributed system of financial-level capabilities based on this, and at the same time, we will open up some internal practices.

Since 2017, we have noticed that the concept of cloud native is developing rapidly. Facing the opportunities and changes brought by cloud native, Ant Financial Service's strategy is to actively embrace cloud native. Because the ideas and ideas brought by cloud origin can just be used to solve some scenes and problems encountered inside Ant Financial.

For example, Service Mesh can solve the problem of lower layer of basic capabilities such as middleware, Serverless can solve the problem of R & D efficiency, and can make business development more focused on business. These new technologies and concepts will be explored internally and implemented in production. Recently, we shared the practice summary of large-scale landing for the first time in Shenzhen GIAC. At the same time, we will open source these cloud native practices and work with the community to promote and build financial cloud native standards.

SOFAStack open source version:

April 19, 2018 officially announced the gradual open source SOFAStack, open source strategy is Open Core, that is, the core interface and implementation are open source, internal retention of the old compatible code. Up to now, almost one year and two months, we have opened more than a dozen projects, accumulated more than 25,600 Stars, more than 120 contributors, and more than 30 production users. Recently, we have also certified two community committers. Here, we would like to thank developers and enterprises again for their trust and recognition. We will continue to optimize and expand the open source territory.

We look at this picture, here you can see that SOFAStack system open source a lot of microservice-related technical components, such as SOFABoot, SOFARPC, etc., we are also compatible or integrated with other excellent open source products of the community, using these components can quickly build a financial level distributed architecture system. Open source code can be found at the Github address below this image. In this Workshop, we will use some technical components of open source.

SOFAStack Cloud Products:

At the same time, we also integrate SOFAStack capabilities into cloud products, as shown below:

The above figure is the architecture diagram of SOFAStack on the cloud. We can see that SOFAStack is a complete solution for commercial output. Supporting the solution is the distributed middleware and cloud application engine capabilities to be experienced this time. In addition, there are perfect R & D efficiency platform services and technical risk prevention and control platform. For this part of the content, there will be more detailed introduction and experience in this afternoon.

Let's get started

After all this talk, do you want to try it out? This Demo will lead you to realize an online e-commerce platform in five hours by comprehensively utilizing the open source version of SOFAStack and cloud products.

The following is a brief introduction to the contents of this Workshop, as shown below:

morning

Build a basic e-commerce platform (bookstore) and transform it into a microservice architecture; increase the ability of intelligent recommendation based on the real-time e-commerce platform (bookstore) of SOFABoot dynamic module capability; use distributed transaction Seata to solve the problem of distributed transactions after microservice splitting, and ensure the data consistency of purchase and balance.

afternoon

Through Serverless fast cloud, use SOFA SAS to publish bookstores to the cloud environment, automatically expand and shrink according to traffic; through Service Mesh to achieve precision gray and flow control capabilities.

This is the system architecture diagram of the online bookstore mentioned. At the top is some infrastructure deployed, including the registry SOFA Registry, the service console SOFA Dashboard, and the monitoring metrics SOFALOutlook. We have prepared this part in advance.

Below is the content of the business. For convenience, we no longer do front-end classification deployment, this time we only need to operate two applications: the web page system and inventory system on the left, providing inventory operation services, and the accounting system on the right, providing balance-related services. When a user's purchase request comes in, the inventory system needs to call the accounting system remotely via RPC.

In addition, inventory service and balance service correspond to independent databases respectively, which will use distributed transaction framework Seata to solve the problem of data consistency under distribution.

SOFAStack Cloud Native Workshop Document Address

All the documents used in this Workshop are currently on SOFAStack official website. After you visit, you can see that there is a [Guide] in the navigation bar, and you can operate according to the documents.

All relevant PPT download addresses in this issue are at the bottom of the corresponding [Guide].

SOFAStack official website: https://www.sofastack.tech

special thanks

This time we have prepared the signature book of Future Architecture as a gift. Thank you very much for the support of the four authors.

Don't forget Star:

https://github.com/sofastack

I hope you have fun with us.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report