V
V
Vitaly2017-05-18 21:36:42
Algorithms
Vitaly, 2017-05-18 21:36:42

How to build a two-way network messaging architecture?

I'm interested in a pattern that will allow you to ask the user for missing data and at the same time completely separate the client and server logic.
Example:

  • user performs an action
  • the client makes a request to the server
  • the server processes the request, at some point a clarification is required from the user
  • the server makes a request to the client
  • user adds new data
  • the client makes a request to the server
  • the server continues processing the request and returns a response
  • the result is displayed on the client

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2017-05-18
@vitali1995

Read about the Finite State Machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question