This setup might work, of course with lot of hacks and tricks, but this is not the way things are connected in the real world network infrastructure. The drawback with the above setup are:
- Your Database server not only handles its regular database tasks but also becomes responsible for managing network traffic among multiple application servers. This can lead to network congestion, increased latency, and potential performance bottlenecks.
- Also there arises scalability issues with this setup, as you can connect only as many application servers as there are ethernet ports available on your database server.
- As your infrastructure expands, troubleshooting and monitoring become even more complex without central point for managing network traffic
And this is a common problem that occurs where multiple devices in a LAN wants to communicate with each other, not just specific to our network setup.
To address such issues and make network connectivity efficient among the devices that exists in the same network, a basic networking concept called "Layer-2 (L2) Switching"
was brought up.Now that we understood the need of L2 Switching, let us see in detail what is it, how does it work?