patrickallaert / php-apm

PHP APM (Alternative PHP Monitor)
http://pecl.php.net/package/APM
Other
310 stars 101 forks source link

How to improve performance when there is lots of MySQL insert #68

Closed syrm closed 6 years ago

syrm commented 6 years ago

Hello,

I think APM is not very suitable in production, because it insert MySQL in a synchrone way. How do you think we should handle that ?

My proposition is to add a daemon mode to push all informations over an udp socket so anyone can write his own daemon (and maybe someone will share it ^^)

syrm commented 6 years ago

I found there is a TCP socket mode. But I can't make this working. I receive nothing on my socket server. Neither with file:/tmp/myapp.sock or tcp:127.0.0.1:1234

syrm commented 6 years ago

Socket don't work in PHP7

syrm commented 6 years ago

Solved, we need to put tcp:localhost:1234