Browse thread
[Caml-list] extending a type with Marshal
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | skaller <skaller@o...> |
| Subject: | Re: [Caml-list] extending a type with Marshal |
On Thu, 2003-10-09 at 07:22, Ker Lutyn wrote: > Marshal provides a convenient way to pass information between > components. It requires that types be the same at either end. But for > multi-machine production systems that must serve traffic continuously, > you cannot count on upgrading all your systems simultaneously. > If you have p2p connection: Negotiate. That's the traditional solution: used by modems, for example. Fixing a negotiation protocol isn't hard. IMHO the hard part is identifying 'versions' and 'capbilities'. Probably the best way is to use a string encoding (and use a parser). Nastiest example I can think of is requesting a font. Note this suggestion requires both servers and clients to maintain capability to handle several 'old' versions. This isn't extension of the Marshalled data, rather quite distinct data for each 'version' is possible, so the solution seems more general: the cost is extra handshakes -- how expensive that is depends on how long the agreement lasts (until explicitly refreshed? until end of session? only for a single data fetch?) ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners