in Education by
We are using In memory data store possibly Hazecast or Redis (technology is undecided yet) Predominantly the in memory data store would be used as Cache provider , but also as computing platform for running some analytics. Hazelcast / Redis provides their own native clients that allows fine grained manipulation of the grid content. Would it be overkill to wrap the hazelcast/ redis instances in a Jetty expose a rest interface and do not provide direct access for the client applications to the Hazelcast/Redis? The responsibility of the REST Controller would be to retrieve an entry, apply a filter and on a cache miss retrieve the entry from database for example. The functionality exposed to the applications would be Read Only + some jobs involving more than one key (analytics). So basically the client applications are not supposed to directly update the content of the grid. Or if this will happen it will be very rare and possibly result of a Job that in any case would be running on the chosen in memory solution. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
This really depends on the use case. Speaking from a Hazelcast perspective, many of the implementations we see are using an in-memory solution to reduce latency and improve throughput. A lot of effort is put into reducing the number of network hops (for example, via Smart Client capabilities that send requests directly to the cluster member hosting the data, rather than through a load balancer or master node). The REST controller introduces another network hop, as well as additional processing time. And, another potential point of failure. So I'd say if low latency / high throughput is of primary concern, I would not introduce a REST layer.

Related questions

0 votes
0 votes
0 votes
    The idea behind “confusion” in cryptography is to hide the relationship between the plaintext and ciphertext. (1)True (2)False...
asked Mar 21, 2021 in Technology by JackTerrance
0 votes
    I am facing a problem that makes me to waste a lot of time. Each time I insert an element on a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    I am facing a problem that makes me to waste a lot of time. Each time I insert an element on a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 10, 2022 in Education by JackTerrance
0 votes
    Annotation used for Rest Controller? 1. @SpringBootApplication 2. @RestController 3. @Controller 4. All of the Above...
asked Jul 8, 2021 in Technology by JackTerrance
0 votes
    Is it possible to model transitioning data like time-zone or a working directory? State reason behind your answer....
asked Oct 16, 2020 in Technology by JackTerrance
0 votes
    According to FOSElasticaBundle documentation it is possible to configure application to use custom query builder method ... Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    I am new to Redis and using Spring Boot + Spring Data Redis example. In this example, I used the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 1, 2022 in Education by JackTerrance
0 votes
    I want have a setup of redis where I write to master and read from slave, without any sentinel. I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    I have a GKE Cluster current scaled upto multiple nodes, the scale up happened during high load due to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    I have an application using Bull for a queue. Is there a parameter that I can pass it to set a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    I am trying to start the redis service on the Redis Server on Unbuntu 16.04 and I am facing this error: Failed ... you please help me? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
...