1.web Development:
1, the browser directly access, the protocol is HTTP, the basic is the PC access, that is, in the home and office, the network is better.
2, the web if more than one service integration, using an ESB to unify the integration
2.APP Development
1, mobile phone app Client access, the protocol can be customized, but also HTTP, basically mobile phone terminal, the network is good is bad, concurrency than the PC, because the mobile phone is easy to carry, the volume of access, the request is a number of services to provide APIs. The workaround is to have a gateway service.
======================================================================================
Because it is an app client access, the network environment is not stable, so do not want to establish a TCP connection multiple times, because there are too many connections, the longer the time spent, the user experience is not good. Second, because the handset side concurrent request is too big, the concurrent connection too many, gives,
Back-end servers can also cause stress, so app requests do not directly access back-end services, but through the gateway to request back-end services, which protects the backend services, but the pressure of the gateway can be very large, because the request needs to improve the gateway to forward, the gateway needs not only a backend service to establish a TCP connection, Also need an app client to establish a connection, so are to establish a long connection, reduce the cost of port and file handle resources, reduce the time spent to establish a connection, the next can also do some security control, traffic forwarding rules, current limit function.
The difference between app development and web development