G
G
Gravio2019-09-27 09:51:00
PHP
Gravio, 2019-09-27 09:51:00

Best way to pass data between scripts inside a VPC?

We have two scripts, one in php (laravel), the other in GO, they are both on the same network.
Sometimes you need to send data from php to GO, or vice versa, how can we do it all, preferably without wasting much time? The most banal thing they came up with is to send a request to go from php post, but then we lose a lot of time.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
index0h, 2019-09-27
@index0h

Inside one vpc - you can communicate via socket files. You can look towards RoadRunner

M
marataziat, 2019-09-27
@marataziat

I guess you use them as microservices, I suggest using Apache Kafka or AWS SQS as they are more extensible than VPC

R
Roman Mirilaczvili, 2019-09-29
@2ord

The most banal thing is client-server communication via HTTP. Sent a request - processed on Go - received a response.
A more advanced way is to use
ZeroMQ or Redis (pub/sub). One topic for submitting issues and another for receiving processed responses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question