...
We will have layered approach for handling the client request message and server response message. Each layer will do its work and pass the message to next layer. Currently, we are planning to add this with Geode server, but eventually, it should work with Netty server/ other.
Layering
The Multiple layers will process the Client request message will be processed by multiple layers. Once that message is constructed and authorized, it will execute that Geode api. Then the response from api will be processed by multiple layers . The following table contains the handlers for processing request, handler to execute the api, and handlers to send a response back to the client. Each handler will implement the Message interface and will be responsible for its task.
Gliffy Diagram | ||||
---|---|---|---|---|
|
Request Message (Down) | Response Message (up) |
---|---|
Collect Message bytes | Send the message |
Collect metadata | Divide the Message |
Construct Message | Add meta data |
Customize key and value | Customize key and value |
Authenticate Connection | Authorize message |
Authorize request Message | Construct Response Message |
Stats | stats |
Execute API |