- Java EE 8 High Performance
- Romain Manni Bucau
- 74字
- 2021-06-30 19:14:25
Get the price, the WebSocket way
The WebSocket endpoint is deployed on /<application_context>/quote, and some exchanges can look like the following:
connect> ws://localhost:9090/quote-manager/quote
send> {"name":"VNET"}
received< {"found":true,"value":5.19}
send> {"name":"DDD"}
received< {"found":true,"value":12.56}
disconnect>
Connection closed: Close status 1000 (Normal Closure)
What is interesting to see in this communication dump is the fact that the connection lasts for more than one request, and it is based on the symbol more than the identifier (compared to the previous JAX-RS samples).
推薦閱讀
- Getting Started with oVirt 3.3
- Persistence in PHP with the Doctrine ORM
- Kubernetes網絡權威指南:基礎、原理與實踐
- Windows Server 2012網絡操作系統企業應用案例詳解
- 8051軟核處理器設計實戰
- 蘋果OS X Mavericks 10.9應用大全
- Kali Linux 2018:Windows Penetration Testing
- 云原生落地:產品、架構與商業模式
- Learn CUDA Programming
- Ubuntu Linux操作系統實用教程
- OpenVZ Essentials
- Android應用性能優化最佳實踐
- Learn OpenShift
- 再也不踩坑的kubernetes實戰指南
- Linux深度攻略