Need a distributed key-value lookup system

前端 未结 10 1976
面向向阳花
面向向阳花 2021-02-01 22:04

I need a way to do key-value lookups across (potentially) hundreds of GB of data. Ideally something based on a distributed hashtable, that works nicely with Java. It should be

10条回答
  •  死守一世寂寞
    2021-02-01 22:49

    Try distributed Map structure from Redisson, it based on Redis server. Using Redis cluster configuration you may split data across 1000 servers.

    Usage example:

    Redisson redisson = Redisson.create();
    
    ConcurrentMap map = redisson.getMap("anyMap");
    map.put("123", new SomeObject());
    map.putIfAbsent("323", new SomeObject());
    map.remove("123");
    
    ...
    
    redisson.shutdown();
    

提交回复
热议问题