- 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).
推薦閱讀
- Linux內核完全注釋(20周年版·第2版)
- 玩到極致 iPhone 4S完全攻略
- 新手易學:系統安裝與重裝
- 嵌入式Linux驅動程序和系統開發實例精講
- 混沌工程實戰:手把手教你實現系統穩定性
- 嵌入式實時操作系統μC/OS原理與實踐
- 細說Linux基礎知識
- Kali Linux 2018:Windows Penetration Testing
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- Python UNIX和Linux系統管理指南
- iOS 10 開發指南
- Zabbix監控系統之深度解析和實踐
- 完美應用Ubuntu(第2版)
- Azure Resource Manager Templates Quick Start Guide
- Microsoft Hyper-V Cluster Design