Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Shared file, database, call command line script, print to screen and a user must type into a command prompt?
-
j0n4s54347y@DasKoder i know.. i want to communicate with php and a process which runs on the server
-
@nobes
Sockets are fast, much faster than tcp. Can't help you with c++ or java but is not much harder than coding for tcp sockets. -
@nobes so, from the browser(JavaScript) to/from PHP to/from Java process on the server?
If it's just a quick PoC:
JavaScript (websocket - socket.io) PHP ( direct command line call) Java...
Though it's not my area of expertise at all. I'm a Microsoft peon usually. I imagine there are user permission issues there. You can always use a message queue like rabbitmq if that's not overkill?
https://stackoverflow.com/questions...
(Edit)
I'm a moron; experienced heads say use sockets... Go with what they say... -
@nobes
Network sockets. Have you tried Unix domain sockets? Think of it as pipes. Send data, get data back, pretty much the same without the tcp overhead.
https://en.m.wikipedia.org/wiki/... -
j0n4s54347y@shellbug is this faster than unix domain sockets? Because Unix domain sockets are very fast like 0-1 ms
-
@nobes I would expect the sockets approach to be faster.
Rabbitmq is the way you would go if you needed multiple workers to process the work from the from end. Your distributed, Microservice architecture...
Related Rants
Is there a better way communicating between php and java than tcp? Because this was my first idea but i try everything on localhost and the request takes up to 3 seconds...
undefined
tcp
php
java