Architecture evolution

1. Architecture evolution

1. Development environment, test environment/sandbox environment, production environment (Linux operating system)

2. All in One

2.1Web2.0 users surged, based on a single architecture cluster
2.2 Problem:
				1.用户到底要访问那台服务器
				2.多台tomcat数据共享问题
				3.涉及到了搜索操作时,数据库受不了
2.3 Use middleware to solve:
			1.使用Nginx反向代理服务器,来解决用户请求问题
			2.使用Redis来代替之前使用的JVM内存怒操作
			3.使用Elasitcsearch来代替MySQL的模糊查询。效率更高,用户体验更好

3. Vertical architecture: Jiang brother modules are developed separately and run in their own web containers, independent of each other

4. Distributed architecture: develop each module separately and run it in its own web container. Through http/rpc, the modules communicate with each other. Like some distributed frameworks, the three layers are separated

4.1 Problems faced by distributed architecture:
					1.服务与服务之间如何实现异步通讯
					2.通过Eureka获取服务地址信息,Ribbon实现负载均衡
					3.Hysreix组件,来实现服务熔断:快速失败,返回托底

Guess you like

Origin blog.csdn.net/qq_39773004/article/details/109303871