Phát triển Backend
Phát triển phía máy chủ với Node.js, NestJS, Spring Boot, Python, socket, Nginx và tích hợp thanh toán.
Module 2: Flask & Jinja2 Lightweight Web Apps
Flask is a "microframework" that provides the essentials for building web applications. Combined with Jinja2 templates, it's perfect for serverside rendered websites.
Đọc bài viết →Module 0.5: Jinja2 The Python Template Engine
Jinja2 is a fast, expressive, and extensible templating engine for Python. It is the default engine for Flask and can be used with many other frameworks including FastAPI and Django.
Đọc bài viết →Advanced Jinja2 Features
Take your templating skills to the next level with these advanced concepts.
Đọc bài viết →Module 0: Understanding RESTful APIs
Before diving into code, it is essential to understand the architectural style that powers most of the modern web: REST Representational State Transfer.
Đọc bài viết →RESTful API Best Practices & Examples
This guide provides practical examples and advanced concepts for building highquality REST APIs.
Đọc bài viết →Introduction to Networks
A network is a collection of interconnected devices computers, servers, routers, etc. that can communicate with each other and share resources. Networks enable data exchange between devices regardless of their physical l
Đọc bài viết →OSI Model and TCP/IP Stack
The OSI model is a 7layer conceptual framework that standardizes the functions of a telecommunication or computing system.
Đọc bài viết →IP Addresses and Ports
An IP Internet Protocol address uniquely identifies a device on a network. It's like a postal address for your computer.
Đọc bài viết →Network Protocols Overview
A protocol is a set of rules that defines how devices communicate over a network. It specifies: How to format data How to establish connections How to handle errors How to terminate communication
Đọc bài viết →What are Sockets?
A socket is an endpoint for communication between two programs running on a network. It's a software abstraction that provides an interface between an application and the network protocol stack TCP/IP.
Đọc bài viết →Socket Types and Domains
The domain also called address family specifies the address format and communication scope.
Đọc bài viết →Socket API Functions
The Socket API provides a set of functions to create, configure, and use sockets. This module covers the core functions used in socket programming.
Đọc bài viết →Socket Lifecycle
Understanding the socket lifecycle is crucial for writing robust network applications. This module explains the complete lifecycle from creation to termination.
Đọc bài viết →TCP Server Implementation
TCP servers are connectionoriented and provide reliable, ordered communication. This module teaches you how to build a TCP server from scratch.
Đọc bài viết →TCP Client Implementation
TCP clients initiate connections to servers and communicate over reliable, ordered connections. This module covers building TCP clients.
Đọc bài viết →Handling Multiple Clients
A basic TCP server handles only one client at a time. Realworld servers need to handle multiple clients concurrently. This module covers different approaches.
Đọc bài viết →TCP Error Handling
Robust error handling is crucial for production socket applications. This module covers common errors and how to handle them properly.
Đọc bài viết →UDP Server Implementation
UDP User Datagram Protocol is connectionless and provides fast, lowoverhead communication. This module covers building UDP servers.
Đọc bài viết →UDP Client Implementation
UDP clients are simpler than TCP clients since no connection is required. This module covers building UDP clients.
Đọc bài viết →UDP vs TCP Comparison
Understanding when to use UDP vs TCP is crucial for effective socket programming. This module provides a detailed comparison.
Đọc bài viết →Byte Ordering Endianness
Byte ordering, or endianness, determines how multibyte values are stored in memory. This is crucial for network communication where different systems may use different byte orders.
Đọc bài viết →Address Structures
Socket addresses are represented differently in different languages and APIs. This module explains address structures and how to work with them.
Đọc bài viết →Exercise 1: Echo Server
Build a TCP echo server that receives messages from clients and sends them back.
Đọc bài viết →Exercise 2: Chat Application
Build a multiuser chat server where clients can send messages that are broadcast to all connected clients.
Đọc bài viết →