atomic-server
atomic-server copied to clipboard
Self URL for client stores?
If we have a client who is creating Resources and storing it only locally, which URL does it create? Of course, whatever they are: the URL will not resolve.
I think all solutions will entail modifying get_self_url.
Some options:
Introduce a new scheme for local-only resources
E.g. local:some_id instead of http://myresource
This may however cause some issues, as some systems will not consider these valid URLs
Use localhost, even if it does not resolve
The current version. It already causes issues in atomic_lib: it tries fetching all resources with before it can save them. This may also confuse clients, as the URLs will not resolve.
Don't allow creating resources on the client without URLs
Atomic Data needs to resolve, so maybe we shouldn't allow clients to even create data that will never resolve. Seems like a harsh solution, as there are quite likely at least some usecases where clients will need some data that never needs to be persisted on a server.