Sh Cache Service
There are three main components of the Sh Cache Service.
-
Decode HTTP Request — decode and validate Sh/HTTP requests.
-
Cache Facade — provide an interface to the Cassandra database so the service can query and update the cache.
-
HSS Facade — provide an interface for the service to query and update the external HSS.
The following sections outline the behaviour of the Sh Cache Service for two simple scenarios.
Cache Miss Scenario
-
Decode and validate a Sh/HTTP request. The request is valid so …
-
Query the cache to see if a result can be returned immediately.
-
In this case there is nothing in the cache so …
-
Send an Sh query to the external HSS
-
The HSS processes the query and sends a response
-
Receive the Sh response and …
-
Update the cache …
-
By updating the Cassandra database
-
Send an HTTP response to the the original Sh/HTTP request