Overview - TCP transport
What is it?
TCP transport in NestJS is a way to send and receive data between applications using the TCP protocol. It allows different parts of an app or different apps to talk to each other over a network connection. NestJS provides built-in support to create servers and clients that communicate using TCP easily. This helps build scalable and fast communication channels.
Why it matters
Without TCP transport, apps would struggle to communicate reliably over networks, especially for real-time or continuous data exchange. TCP ensures data arrives in order and without loss, which is crucial for many applications like chat systems, microservices, or games. NestJS TCP transport simplifies building these connections, saving developers time and reducing errors.
Where it fits
Before learning TCP transport, you should understand basic networking concepts and how NestJS handles modules and services. After mastering TCP transport, you can explore other NestJS transport layers like Redis or MQTT, or dive into building full microservice architectures.