Home > Net >  MVC load balancing scheme
MVC load balancing scheme

Time:09-24

Many of controller USES the return view (" XXX. CSHTML "), now to do load balancing, strives for the ideas!

CodePudding user response:

The specific requirements of the proposed load balancing,

CodePudding user response:

Our system of XXX. The CSHTML is can edit the template file, if XXX CSHTML can't it's meaningless to centralized management,

CodePudding user response:

Load balancing? This is not balance the pressure of multiple servers? What is the relationship between and code? Don't I understand is wrong

CodePudding user response:

Estimated as baidu network backup, library, such as the function modules of the server, so you should make a few servers, and then through the way of routing, depending on the URL to access the server? Which also need to use redis, synchronous data such as mm

CodePudding user response:

refer to the second floor qq_35952298 response:
our system of XXX. CSHTML can edit the template file, if XXX CSHTML can't it's meaningless to centralized management,


What is not literally said "if you can't it's meaningless to centralized management" can solve a problem, for example, assume that alibaba had anyone to say "if you can't it's meaningless to centralized management" then alibaba would have closed down, because nothing is need distributed processing, technical personnel "almost" against distributed service system, can only be fired technical personnel, and won't go to stop a distributed system, the realization of load balancing,

When a revised template, it is only natural that automatically published to all servers, or we'll doing technicians to design and development process?

CodePudding user response:

If it is really doing load balancing, you use the load balancer, such as ngnix or haproxy, then deploy a load balancer, behind is deployed at least two web application server, distribute the request through the load balancer

CodePudding user response:

Return the view and load without a cent relationship

CodePudding user response:

Do load balancing, view didn't any relationship with you,
There are ways to load balancing, if you want to do,
1. The hardware, such as F5
2. Software, such as Nignx, LVS, HAProxy

At the same time, the need to consider sharing session,

CodePudding user response:

The load balance of the return is the return
A server will only return him the corresponding view server.

You need to consider is the need to send to which server and how to keep the conversation

CodePudding user response:

Have you ever thought with Redis?

CodePudding user response:

MVC is pipeline mode, each one can be controlled, including dynamic template, see how your architecture design, you are how old project, need to do?
  • Related