1

I am developing a SOAP server which receives data from many different asynchronous sources (CORBA), updates its internal state and pushes data to its clients.

I have a StateManager class which is a Singleton and that encapsulates the server state. I am wondering if it is a good idea to use Command pattern to isolate action logic decoupling StateMananger and DataReceiver.

My doubt is: am I overcomplicating my code? Seen that the state manager is a singleton, shouldn't I prefer creating updates method inside it (avoiding all command classes)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.