AEAmr Elmohamadyinamrelmohamady.hashnode.dev·Jul 28, 2022 · 4 min readHow to scale Node.js Socket.IO servers with load balancing & reverse proxy using Pm2, NGINX & Redis?Imagine that you are building an app with chat rooms (or any realtime app) and it will have thousands of users how do you think a server could handle this load ?! Before starting, I want you to be familiar with two concepts. Reverse Proxy A reverse p...01C
AEAmr Elmohamadyinamrelmohamady.hashnode.dev·Apr 14, 2022 · 3 min readWhy and how to use the the Node.js Event Emitter in real projects?The Observer pattern and the Event Emitter The Observer pattern defines an object (called the subject) that can notify a set of observers (or listeners) when a change in its state occurs. It can be implemented in OOP by using a class that can registe...00
AEAmr Elmohamadyinamrelmohamady.hashnode.dev·Feb 13, 2021 · 3 min readHow to create a custom global Nuxt plugin (toast)?In this article, we'll be building a dynamic global nuxt plugin that is going to be a Toast (snackbar). Prerequisites: Vue Vuex Nuxt So, Let's start by creating a Nuxt app using npx: npx create-nuxt-app nuxt-toast Go with the steps and in the U...00