dimanche 16 avril 2017

desgin patterns I can use while developing a desktop, java fx socket application

I am developing a desktop app using JavaFx and Socket. There are different servers that would be sending data to my app, and my app would be sending data to them. The data I would be receiving from servers are numbers, after every interval of 5 seconds. I need to process this data asynchronously and display those processed data in my screen. Now, there are different servers, but the processing is exactly same. Also while sending data, processing is same but the receivers are different.

I was planning to use strategy or command pattern to handle this. Can someone suggest proper approach, design pattern to build this application?

Thanks.

Aucun commentaire:

Enregistrer un commentaire