Thinking about the Tobias' email...
Robert, should I be "worried" about the replication of Handle system using Mongo?. If I keep the same fields, same Handle Storage principles (based on HandleStorage class) but different CRUD methods to use the database, it is supposed to works well with many servers?.
Best regards. De: handle-info-bounces@cnri.reston.va.us <handle-info-bounces@cnri.reston.va.us> en nombre de Ruiz-Zafra, Angel <a.ruiz-zafra@ucl.ac.uk>
Enviado: jueves, 5 de enero de 2017 9:53:41 Para: Robert R Tupelo-Schneck Cc: handle-info@cnri.reston.va.us Asunto: Re: [Handle-info] [Handle-MongoDB] New attributes? Hello Robert.
Yes, I wrote a custom storage module that implements "HandleStorage" interface and yes, I though the idea to storage a full mongo object (or query) into the "data" field and this is what I'm going to do now that I know that is really difficult (or almost impossible) to support new fields.
Thank you very much!.
Tobias, I'm just focused in the deployment of a single server, so I'm not addressing the replication system using Mongo (so far).
Best regards to both of you.
De: Robert R Tupelo-Schneck <schneck@cnri.reston.va.us>
Enviado: miércoles, 4 de enero de 2017 19:47:19 Para: Ruiz-Zafra, Angel Cc: handle-info@cnri.reston.va.us Asunto: Re: [Handle-info] [Handle-MongoDB] New attributes? If I remember correctly you have written a custom storage module to use MongoDB? How to structure MongoDB queries will depend on how each handle or handle value is serialized into a MongoDB object. In principle you could (and should!) certainly
do that in such a way to allow access to the various components of the handle values in MongoDB queries.
The binary encoding of a handle value is specified in the Handle RFCs and this limits the ability to add new fields in a way compatible with the Handle protocol. My strong recommendation would be to have the "data" of a handle value be a structured
object---a bit of JSON, probably---which encodes the attributes you want. You could even write your MongoDB storage module in such a way that it could notice when a handle value's data is JSON (perhaps for certain handle value "types") and "unpackage" it
into a form compatible with MongoDB search.
Robert
|
_______________________________________________ Handle-Info mailing list Handle-Info@cnri.reston.va.us http://www.handle.net/mailman/listinfo/handle-info