Pipe / Sharing

88 views
Skip to first unread message

Ben jiro

unread,
Aug 30, 2016, 8:33:29 AM8/30/16
to Haxe
Hellon

I am currently programming a micro-service system and thinking about having the services communicate using a pipe or ipc. 

Each communication layer design ( current design ) involves a 5 stage communication ( with more potential stages ) and hundreds of services. So sockets are not useful because of the socket / threat limit on platforms ( and the extra performance hit ).

Is there any basic pipe or memory sharing available for Haxe? Mostly focused upon the C++ target. I remember a topic about a stream sharing a while ago but totally forgot the link :(

Thanks

Laurence Taylor

unread,
Aug 30, 2016, 10:35:08 AM8/30/16
to haxe...@googlegroups.com

https://github.com/0b1kn00b/stx_simplex

Has a model of unidirectional pipes,  i.e either send or receive states. There is an update coming that removes the dependency on arrowlets and allows either synchronous or asynchronous design.
You can model folds and unfolds and asynchronous processes under the same abstraction, requesting more data and producing partial or complete responses, and composing the pipelines in sequential or parallel fashion.
Work needs to be done to hoist the standard library and flesh things out.
Check the data folder for the type definitions.


--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Ben jiro

unread,
Aug 30, 2016, 3:29:21 PM8/30/16
to Haxe
Thanks, i will have a look at your code :)

Laurence Taylor

unread,
Sep 2, 2016, 4:18:36 AM9/2/16
to haxe...@googlegroups.com
A few updates, including a sane-ish pipe function. check Connection.hx for a simple example with creating and using a database connection.

regards,
Laurence
Reply all
Reply to author
Forward
0 new messages