Understanding Vert.x Components
http://www.cubrid.org/blog/dev-platform/understanding-vertx-architecture-part-2/
Figure 1: Vert.x Architecture (Component) Diagram.
Figure 1 above shows a diagram of Vert.x components. As shown in the figure, in all Vert.x instances (these can be understood as a JVM), a Hazelcast is embedded and runs. The embedded Hazelcast is connected to Hazelcast in other Vert.x instances. Event Bus uses functions of Hazelcast. Hazelcast itself provides a certain level of reliability (because of WAL records and data duplication). So, events can be forwarded with a certain level of reliability.
주요 포인트:
1. HTTP Server / Net Server 를 내장하고 있다.
2. 헤즐케스트끼리 데이터 공유한다.
3. Event Bus 로 메세지 교환한다.
4. Verticle 객체는 일을 백그라운드 쓰레드에게 전가한다. (블록킹)
논블럭킹이라면 훨씬 속도면에서 효율적일텐데...상태가 깨지는걸 방지하는 철학?
5. Accept 쓰레드 풀이있다.
6. Verticle 당 하나의 네티의 NioWorker 와 연결된다.
7. 하나의 노드에서 데이타를 공유해서 가지고있으며 서버도 공유한다.
'Vert.x' 카테고리의 다른 글
| Vert.x 를 이용한 실시간 웹 어플리케이션 (1) (0) | 2015.05.21 |
|---|---|
| Vert.x 와 Node.js 비교 (0) | 2015.05.19 |
| Vert.x 의 Hazelcast 사용이유 (0) | 2015.05.19 |
| Vert.x 의 Thread Pool & 이벤트루프 인사이드 (0) | 2015.05.19 |
| Vert.x + playframework = playVertX (0) | 2015.05.16 |