---
title: "Amr Elmohamady (@AmrElmohamady) | Hashnode"
description: "CSE Student | Software Developer | Backend & Databases. Read the latest articles by Amr Elmohamady on Hashnode."
url: "https://hashnode.com/@AmrElmohamady"
---

@AmrElmohamady

# Amr Elmohamady

@AmrElmohamady · Joined June 2022

CSE Student | Software Developer | Backend & Databases

## Comments

["The advantages of using a CHAR type specially for very short strings is that it can actually use less space because it doesn't need to store the size information and it's not prone to fragmentation." When you mention row fragmentation while comparing char and VARCHAR, you mean storing some columns in off-page storage (overflow pages), right? If so, the CHAR type can also be fragmented when using a CHAR(255) in utf8mb4 character set (default in MySQL) which has a max of 4 bytes per character (4\*255=1020 > 768). Fixed-length fields greater than or equal to 768 bytes are encoded as variable-length fields. So the CHAR type is actually prone to fragmentation. https://dev.mysql.com/doc/refman/8.3/en/innodb-row-format.html#innodb-row-format-dynamic Correct me if I am wrong or misunderstood. By the way, I am really enjoying the series so far.](https://hashnode.com/posts/high-performance-mysql-ch4-optimizing-schema-and-data-types/607ac811c99e200d08f7acea/comment/662fd4355a7cf505bda65afa)

Comment · Article · Apr 29, 2024 · [High Performance MySQL \[Ch.4: Optimizing Schema and Data Types\]](https://hashnode.com/posts/high-performance-mysql-ch4-optimizing-schema-and-data-types/607ac811c99e200d08f7acea)

[You just need to use the machine IP or domain and if you are using a custom port the add the port after the domain like example.com:8000 You don't need to put every instance of the app that is made by pm2 in NGINX because pm2 will be responsible for load balancing of its spawned instances using round-robin algorithm.](https://hashnode.com/posts/how-to-scale-nodejs-socketio-servers-with-load-balancing-reverse-proxy-using-pm2-nginx-redis/62aca0771a89c91850b1df07/comment/63313a1cd31e632fdf036d2b#reply-633158dfd9e7b63227b6a2c0)

Reply · Article · Sep 26, 2022 · [How to scale Node.js Socket.IO servers with load balancing & reverse proxy using Pm2, NGINX & Redis?](https://hashnode.com/posts/how-to-scale-nodejs-socketio-servers-with-load-balancing-reverse-proxy-using-pm2-nginx-redis/62aca0771a89c91850b1df07)
