DAO using a ConcurrentHashMap
Is it ok to have a REST Webservice (Spring+Jersey) that uses a DAO with a
ConcurrentHashMap to store the data, or should I avoid it and use some
kind of in-memory DB?
It's an sample application, so I don't mind losing the data every time the
application stops.
No comments:
Post a Comment