简体   繁体   中英

Design Pattern for real-time systems related to network connections in Java

I'm designing real-time system server where reliability is crucial. Do you know any design pattern for handling exceptions of network connection. Is it common to write wrapper for class DatagramSocket or DatagramChannel and implement connection retry mechanism in case any occurred exception? Thanks in advance for any help related to this topic.

you have to implement retry mechanism. you can try Idempotent retry design pattern for this purpose. find link below.

幂等重试模式

http://servicedesignpatterns.com/WebServiceInfrastructures/IdempotentRetry

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM