Both AtomPub and Websockets fit in with XPCA's general RESTful
architecture, though they really cater for different needs. Websockets
are probably more useful in real-time contexts (e.g. low-latency HMI
interfaces) and AtomPub is better suited to displaying historical
data.
My inclination would be to do both, as the more connections that are
available to XPCA the more likely it will be adopted by interested
parties.
One crazy idea that's still floating around in my head is this notion
of "recipes". If we describe a recipe, say "Using XPCA with
Websockets" and another "Accessing XPCA via AtomPP" (and "Mapping
MODBUS to XPCA" and so on). If each recipe is identified then it's a
matter of interrogating the service to see what you can do with it.
This concept is all very loose, but the general idea is that rather
than insist on one way of doing things, providing a number of possible
ways and let people figure out what best suits them. I'll have more on
this later, in another post.
But back to Websockets vs, AtomPub, I think both your ideas are sound.
We just need to work the details out. From then on it's just a simple
matter of implementation :)
Cheers
Tom
This example is XPCA server with websocket. It is showing a
subscriptions on changing points.
Sorry, I could not have a stable working code - not all sockets open
with success. But It is demonstrating the principle.
Each point have a separate websocket that is problem. If I understand
you correctly, we could to bundle many point in group and use the same
methods.
I not sure that it is best way, but I not sure that not)
Now I am designing the XPCA server for communicate with device and OPC
servers. First priority is implementation synchronous read\write
operationы and I sure we will return to this problem with new
understanding;)
Aleksey
2011/8/13 ferrisoxide <ferri...@gmail.com>:
Finally, I have understood that Tom and you mean! It's more higher
level of abstraction
for mapping and subscripting data. You open my eyes)))
2011/8/16 Darren <dj.da...@gmail.com>: