From gob documentation, it looks like gobs are most suited when bound with
network connection and can be efficient in transmitting data.
I am trying to do something like this
Application F, is responsible for populating cache, and it encodes data
using gob and sets into cache.
Application A, have to fetch data from cache and decode it and use it.
Now questions are -
1. when application A is restarted - it will not be able to de-serialize
data from cache, as it wont have type information (as its send only in
first gob for respective type?. Please confirm.)
2. I cannot have multiple decoders in application A, because I am not aware
of which objects have type information or not. (Though I think one decoder
will be fine in my case, but just wanted to raise concern).
Structures I am using in F and A are same, I was wondering if we have any
api, which can allow to let gob know, what structures it may expect or
something like Registration while booting application?
Only viable option at this point, looks to me to be have a new gob encoder
every time I encode structure in F. But this I think will be fairly
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.