You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by diopek <de...@gmail.com> on 2016/02/07 19:23:45 UTC

Converting REST service to Ignite Service Grid

One of our projects is currently using a HTTP/JSON REST service to provide
read-only access capability for multiple hierarchy trees (geography,
business segment, legal entity etc.) for different dates.
Currently this service is only deployed on JEE app server that runs on 2
nodes cluster.
As current load to access this service is getting increased and also dynamic
deployment capability to support multiple dates for different hierarchy maps
is also part of new requirements, moving these static REST services to
Iginite Service grid is under consideration.
As current client applications for this REST service is using Spring REST
template to access existing service, moving to Ignite based solution impact
would be update all the client code to Ignite Service grid api. 
Hence, I'd like to hear your comments/suggestions (any pros/cons, better
practices) regarding this architectural change that we are considering for
our project. Thanks,



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Converting-REST-service-to-Ignite-Service-Grid-tp2873.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Converting REST service to Ignite Service Grid

Posted by vkulichenko <va...@gmail.com>.
Hi Deha,

Yes, this is correct.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Converting-REST-service-to-Ignite-Service-Grid-tp2873p2890.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Converting REST service to Ignite Service Grid

Posted by diopek <de...@gmail.com>.
Hi Val,
if we just use Ignite service grid client API to access service cluster,
Ignite automatically handles load balancing. Is that correct? 
Thanks,
Deha



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Converting-REST-service-to-Ignite-Service-Grid-tp2873p2886.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Converting REST service to Ignite Service Grid

Posted by vkulichenko <va...@gmail.com>.
Hi diopek,

I think the easiest way to scale your service is to start several app
servers with a load balancer (nginx, etc.) in front. Each app server should
have an embedded Ignite client node which will allow it to communicate with
your Ignite cluster. Will this work for you?

You can also take a look at our Web Sessions Clustering feature [1],
probably it will be useful as well.

[1] https://apacheignite.readme.io/docs/web-session-clustering

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Converting-REST-service-to-Ignite-Service-Grid-tp2873p2874.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.