Which language to use with php for backend (Go vs. Python)?

Problems often arise when developing applications in php when it comes to dealing with queues, complex integrations, monitoring systems, etc.

Would like to choose a language that can be used in conjunction with php for such purposes.

Please tell me which one is better suited ?
What are the advantages and disadvantages of both for this task ?
April 19th 20 at 12:00
3 answers
April 19th 20 at 12:02
take go
April 19th 20 at 12:04
I think the difference is not present here, the important thing is the skills and experience you possess in a particular language.
Choose the language you know more.
go and python does not know at all. a year and a half was written in c++. - myrtle.Breitenbe commented on April 19th 20 at 12:07
@myrtle.Breitenbe, I don't think python or golang there are any problems with this.
Depends on how you will write the application and build the right architecture. There are many ready libraries in both languages. - norberto93 commented on April 19th 20 at 12:10
@myrtle.Breitenbe, Lovely. Perfect question. In your case everything is much easier. Why can't write in C++ then ? - Vinnie.Barrows commented on April 19th 20 at 12:13
@Vinnie.Barrows, what do you think ? - myrtle.Breitenbe commented on April 19th 20 at 12:16
Then what makes you think that to learn a new language will be easier ?@myrtle.Breitenbe, - Vinnie.Barrows commented on April 19th 20 at 12:19
@Vinnie.Barrows, to learn a new language is very difficult ? weird, didn't know..

ps, C++ for rapid development. - myrtle.Breitenbe commented on April 19th 20 at 12:22
@Vinnie.Barrows, judging by your questions on C++, you do not know it yet, what is the language. - myrtle.Breitenbe commented on April 19th 20 at 12:25
@myrtle.Breitenbe, I use it only for creating small applications {I in fact do not know. Only the book halfway through and then abandoned.}. Python is not very convenient to do app and pack it in the exe :)

to learn a new language is very difficult ? weird, didn't know..


Indeed, you can see that you know 6-9 YAP and remember everything without problems, Oh well, at least now with a low start ready to go and write an asynchronous server with a high load on any of the JAP.

ps, C++ for rapid development.

If you know what you want to do and have the necessary experience, any language can be used for rapid development. I don't know C + very little experience, consequently I have a lot of different questions on this JAP. - Vinnie.Barrows commented on April 19th 20 at 12:28
April 19th 20 at 12:06
Take pthreads (everything you need for asynchronous, language - php).
pthreads at all in a long time hat. swoole the same by orders of magnitude more stable it will be. Yes, and you can alternatively in the background to let the worker and stupid to push the data back through the built-in sandoway stack. - judd_Spinka commented on April 19th 20 at 12:09
@judd_Spinka, CA. Want to know without holivara and boast: what the rake stumbled in fredah? - katrina_Bartoletti commented on April 19th 20 at 12:12
@katrina_Bartoletti, as I recall - it simply does not work when more code than a few lines. - judd_Spinka commented on April 19th 20 at 12:15
@judd_Spinka, I made a web socket server works fine.
The queue was checked - too all apprx.
Just thought failures some have come (from bugs in Liebe, for example)... - katrina_Bartoletti commented on April 19th 20 at 12:18
@katrina_Bartoletti, Yes, I was talking about bugs and saying. When I tried to use it - it is felt Hello worldh, but embedding into the final project were given all sorts of Access Viloation and other errors.

In any case, even if I slander, then it is not important, because the main developer for this reason and refused further support in favor of alternatives to the ext-async.

P. S. and Yes, it requires a ZTS version of blaze, which I think is terrible crutch that it is high time to bury. - judd_Spinka commented on April 19th 20 at 12:21
@judd_Spinka, the main developer of what? Predov? - katrina_Bartoletti commented on April 19th 20 at 12:24
@katrina_Bartoletti, no, I'm talking about krakjoe: https://github.com/krakjoe/pthreads

Better instead to use a https://github.com/krakjoe/parallel or ext-async - judd_Spinka commented on April 19th 20 at 12:27
@judd_Spinka, I also thought...
Fred - well, I meant the 1st link)
Well, I better climb on the 2nd link (parallel), when all will be bad.. - katrina_Bartoletti commented on April 19th 20 at 12:30
@katrina_Bartoletti, @judd_Spinka,

Well, I better climb on the 2nd link (parallel), when all will be bad..

It seems that these times have come and should only use parallel instead of pthreads:

I do not intend to maintain pthreads anymore, nor encourage it's maintenance: It is, in my opinion, broken by design, and fixing it is simply not worth it.

...
When 7.4 goes into RC stage near the end of this year, this repository will be archived, and no further releases of pthreads will occur on or PECL from this repository.

Joe Watkins the creator of pthreads (c) - lori.Koelpin81 commented on April 19th 20 at 12:33
@lori.Koelpin81, If you start a new project - Yes.
And yet I have no failures on old - will not touch) - katrina_Bartoletti commented on April 19th 20 at 12:36
@katrina_Bartoletti, the Golden rule: "if works - do not touch"(with). - lori.Koelpin81 commented on April 19th 20 at 12:39
@lori.Koelpin81, Definitely!) - katrina_Bartoletti commented on April 19th 20 at 12:42

Find more questions by tags PHP