What is the best way to expose Cassandra REST API to web?

11,396

Solution 1

Staash solution looks perfect for the task - https://github.com/Netflix/staash

Solution 2

You can use DataStax drivers. I used it via Scala but you can use Java, a Session object is a long-lived object and it should not be used in a request/response short-lived fashion but it's up to you.

ref. rules when using datastax drivers

Share:
11,396
Denis Liger
Author by

Denis Liger

https://ok.wiki https://b6.games

Updated on June 04, 2022

Comments

  • Denis Liger
    Denis Liger about 2 years

    I would like to work with Cassandra from javascript web app using REST API. REST should support basic commands working with DB - create table, select/add/update/remove items. Will be perfect to have something similar to odata protocol.

    P.S. I'm looking for some library or component. Java is a most preferred.

  • Denis Liger
    Denis Liger almost 9 years
    Thank you Jeff for the comment. But I'm interesting not in language. I'm looking for framework or library so that I would prefer reuse already written component instead of inventing own wheel. Yes, java is a most preferred platform.
  • Jeff Jirsa
    Jeff Jirsa almost 9 years
    You likely won't find any component that's of much use, other than perhaps the datastax driver ( github.com/datastax/java-driver ), unless you wanted to build it around the OpsCenter product datastax provides.