CS Architecture
Restful Responsibilities:
Scheduler Responsibilities:
Service Responsibilities:
Vertical Division
Vertically divided into 4 modules: Listener, History, ContextId, Context:
Listener responsibilities:
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
History Responsibilities:
ContextId Responsibilities:
Mainly docking with Persistence for ContextId creation, update and removal, etc.
Context responsibility:
Encapsulate the query condition and go to the ContextSearch module to obtain the corresponding ContextKeyValue data
Need to ensure that Restful’s thread pool is not filled