简体   繁体   中英

Build a Key-Value Store

I'm thinking of building a distributed data storage with a client/server architecture. I want the client to associate keys (String) to values (byte[]), like a Map does. I want to do this in Java using sockets, threads and files.

How can i do this as simple as possible?

Thanks

You really want to reinvent that wheel?

If you're absolutely determined to do this, at least take a look at previous attempts (Cassandra for example is a distributed key-value store written in Java), and see what mistakes were made so you can improve on the effort.

To do it as simple as possible, use distributed hash table . You can implement your own, of course, but there is no easy way to do that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM