3 ms·
"How we increased chat performance by 10x without writing any code." "this quick 'hack' required only minor changes in our code" sigh...
by overdrivetg 13y ago
"How we increased chat performance by 10x without writing any code."
"this quick 'hack' required only minor changes in our code"
sigh...
- kirillzubovsky 13y agoAlright, to be fair, if you change anything at all in your application, you need write code. However, instead of spending two weeks and rebuilding everything under the sun, this change only required a quick update to how messages get posted. To be precise, we do two things different now: (1) Check if the sender of a message is the same as the current user, in which case we skip messages coming from Pusher. (2) Before sending msg data to Pusher, we copy-paste the html onto the message thread. That's not really "writing code", as far as thousands of lines of code are concerned.