You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

 

Its in progress right now ....

Approach

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

Multiple layers will process the Client request message. 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. 

Handler

 

Request Message (Down)DescriptionResponse Message (up)Description
MessageBytesCollectorCollect Message bytesMessageSenderSend the message to the client
MessageDecoder Construct MessageResponseEncoderSerialize the resposne
DecorateKeyValueUpdate key value based on metadataResponseMetadataHandleradd any metadata in resposne
  DecorateKeyValueDecorate key value based on metadata
AuthenticateHandlerverify whether connection is authenticated or notResponseAuthorizationHandlerauthorize response
RequestAuthorizationHandlerAuthorize the requestResponseHandlerConstruct Response Message
StatsHandlerUpdate the geode stats for requestStatsHandler 
ApiExecutionHandler (execute the api)
  • No labels