CS Architecture
Horizontally divided into three modules: Restful, Scheduler, Service
Encapsulate the request as httpjob and submit it to the Scheduler
Find the corresponding service through the ServiceName of the httpjob protocol to execute the job
The module that actually executes the request logic, encapsulates the ResponseProtocol, and wakes up the wait thread in Restful
Vertically divided into 4 modules: Listener, History, ContextId, Context:
Responsible for the registration and binding of the client side (write to the database and register in the CallbackEngine)
Heartbeat interface, return Array[ListenerCallback] through CallbackEngine
Create and remove history, operate Persistence for DB persistence
Mainly docking with Persistence for ContextId creation, update and removal, etc.
For removal, reset and other methods, first operate Persistence for DB persistence, and update ContextCache
Encapsulate the query condition and go to the ContextSearch module to obtain the corresponding ContextKeyValue data
The steps for requesting access are as follows:
Need to ensure that Restful’s thread pool is not filled
The sequence diagram is as follows: