X
X
xlusv2015-05-29 23:17:32
Database
xlusv, 2015-05-29 23:17:32

What efficient storage would you recommend?

1. Task: to store large objects in a serialized form with a binding to the user. Not in RAM.
2. We complicate the task: automatically delete objects after a certain period.
What can you suggest and why?
UPD: Web service. Users work with documents. The data for the document is taken from different APIs, an object is formed. Documents opened by the user must be temporarily stored on the server in a serialized form. At the request of the user, we extract, deserialize, make changes, form according to the html template, return. When saving, we deserialize, transform into json / xml, helmet back to the API.
HTTP session is not suitable, due to the size of the objects.
One of the most obvious options is a relational database and a table like: user_id, key, value, timestamp. Perhaps there are better options.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Melekhovets, 2015-05-30
@Blast

1. In fs, select directories for users and add blobs there.
2. Throw something like find into the cron. -mtime 5 -delete
Everything is there out of the box. Just like slippers. Minimum effort. Works.
If there are objective additional requirements for volume, load, distribution, fault tolerance, etc. - add a question, please, then it will also be interesting for me to read the answers :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question