Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3599404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:21:48+00:00 2026-05-18T20:21:48+00:00

In our project we already have an embedded in-memory key-value storage for objects, and

  • 0

In our project we already have an embedded in-memory key-value storage for objects, and it is very usable, because it allows us to make indexes for it and query the storage based on it. So, if we have a collection of “Student”s, and a compound index on student.group and student.sex, then we can find all male students from group “ABC”. Same for deletion and so on.

Now we have to adopt our service for working in a cloud, so that there will be multiple servers, processing user requests, and they have a shared state, stored in this key-value indexed storage. We tried to adopt memcashed for our needs, and it’s almost ideal — it is fast, simple and proven solution, but it doesn’t have indexes, so we can’t used to search our temporary data.

Is there any other way to have a remote cache, just like the memcashed, but with indexes?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:21:49+00:00Added an answer on May 18, 2026 at 8:21 pm

    Try hazelcast, It is an in-memory data grid that distributes the data among servers. You can have indexes just like you described in your question and query for them.

    Usage is very simple. Just add Hazelcast.jar and start coding. It can be both embedded and remote.

    Here is the index and query usage

    add index

    IMap<Integer, Student> myDistributedMap = Hazelcast.getMap("students")
    myDistributedMap.addIndex("group", false);
    myDistributedMap.addIndex("sex", false);
    

    store in imdg

    myDistributedMap.put(student.id, student)
    

    ;

    query

    Collection<Student> result = myDistributedMap.values(new SqlPredicate("sex=male AND group=ABC"));
    

    Finally it works fine in the cloud. Ex: EC2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our project we already have an embedded in-memory key-value storage for objects, and
We currently have one dynamic web project (our main web application) already setup on
I already have an grails web application, And our project need CAS, however I
In our project we have requirement that, after receiving sms message from third party
In our project we have UI and logic (which may be represented as a
In our project we have a requirement that when a set of records are
Intro We have a project to design and implement this semester. For our project,
Our project already has a StyleCop configuration. I am using ReSharper and I would
I have a Jenkins job which compiles and publishes our Java project to a
We already have an existing MSI Installer (web deployment project - .vdproj) that we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.