1.为什么会有ServerLess

We all know by now that for applications to run, they need a server. In the beginning, most companies will buy their own hardware servers to configure their own development. That’s a headache, because not only does it require more money but it also requires more people to maintain it, and it takes up a lot of space, doesn’t it? Hey hey. So, then began to evolve virtual services technology. To put services in the cloud, companies simply go to cloud vendors and buy a cloud server. However, later on, people were not satisfied. For example, an e-commerce platform company needed to do activities. When it was doing activities, the number of concurrent requests was very large, and it could not be supported without purchasing multiple servers. So companies are forced to buy multiple servers, and where does that leave them? That is, when the event is over, the servers that are used to load the requests are just sitting there. But they are idle, still need to continue to pay the cloud vendors, so the money is pouring out, if I were the boss, I would have a heart attack.

2. What is ServerLess

ServerLess(no server)Copy the code

The ServerLess concept was first proposed in 2012 by Ken, vice president of cloud infrastructure services provider Iron.io: quote

Even with the rise of cloud computing, the world still revolves around servers. That won’t last, though. Cloud apps are moving into a serverless world, and that will bring big implications for the creation and distribution of software and applications.Even with the rise of cloud computing, the world still revolves around servers. That won’t last, though. Cloud apps are moving into a serverless world, and that will bring big implications for the creation and distribution of software and applications.

Although cloud computing is very popular nowadays, most applications still run around this server. First of all, we need to be clear that ServerLess is a concept. ServerLess means “no server”, so many people wonder: no server, then you still run a hammer program??

3. What is cloud function

Cloud functions, as defined on the official website, are Serverless execution environments provided by cloud vendors. You can write simple, single-purpose cloud functions to associate them with events generated by your cloud infrastructure and other cloud services.

Specific reference – > cloud.tencent.com/document/pr…

In layman’s terms: Cloud functions are computing products within the ServerLess product. It contains the following technical features:

1 Automatic scaling: The cloud function supports real-time elastic scaling at the millisecond level. The capacity can be expanded or shrunk based on requests. Dynamic load balancing distributes requests to a near-infinite number of function instances at the back end, requiring no manual configuration or manipulation at all, for scenarios where concurrency can range from zero to tens of thousands.

This means that you probably don’t have to spend a lot of money to buy more servers for high concurrent request loads. Using the cloud allows you to scale up in real time based on the number of concurrent requests you make, which I personally find very appealing to employers.

2. Event-driven 1. Cloud functions are driven by events. When an event arrives, cloud functions will start and run. Events can be variously defined as an HTTP request, a file upload, a database entry modification, or a message sent

3. What does the advent of ServerLess mean?

In the early days of the Internet, front-end development might have been nothing more than a cut chart. Later, with the birth of Ajax, Node. js and Webpack, the front-end gradually moved from the era of cutting graphics at the beginning to the era of engineering, and then with the rise of various JS frameworks, it moved to the era of componentization. Until the present concept of ServerLess, the front-end has pushed to a new era again, ServerLess can let front-end developers no longer care about the deployment of the server, really put the core in the level of business logic, and even to undertake some back-end basic business logic. But a lot of people wonder: Isn’t that more work on the front end? Personally, I don’t think so. I think if you’re a front-end developer and you’re writing logic for rendering layers all the time, you’re not being able to do your job well enough. The weight of the value of the work you do at the company is only likely to come through when you really do the core business at the logical level. The above is only some of my personal views, do not like light spray. thank you

4. What opportunities does ServerLess bring to front-end development?

A lot of people wonder: Isn’t that more work to do on the front end? Personally, I don’t think so. I think if you’re a front-end developer and you’re writing logic for rendering layers all the time, you’re not being able to do your job well enough. The weight of the value of the work you do at the company is only likely to come through when you really do the core business at the logical level.

The stronger the ability, the greater the responsibility

The greater the power, the greater the responsibility, the more irreplaceable