Redis Caching & Messaging (Pub/Sub, Streams) · บทเรียน

บทนำสู่ Redis

สำรวจว่า Redis คืออะไร มีสถาปัตยกรรมอย่างไร และใช้ในงานพัฒนาแอปพลิเคชันด้านใดบ้าง

บทเรียน 1 จาก 411 ขั้นตอน

บทนำสู่ Redis เป็นบทเรียน Redis Caching & Messaging (Pub/Sub, Streams) ฟรีบน CoddyKit นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Redis Caching & Messaging (Pub/Sub, Streams) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Redis Caching & Messaging (Pub/Sub, Streams) มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Welcome to Redis!

Redis (Remote Dictionary Server) is a blazing-fast, in-memory key-value store. Developers reach for it for caching, sessions, and real-time analytics.

Data in RAM for Speed

Redis is in-memory: it keeps data in RAM, making reads and writes far faster than disk-based databases. It can still persist to disk when you need durability.

The Simple Power of Key-Value

At its core Redis is a key-value store — look up a value by its unique key, like a dictionary. Values can be strings, lists, hashes, or sets.

Blazing Fast Performance

Redis is fast for three reasons: it's in-memory, written in optimized C, and single-threaded — which avoids locks on data operations entirely.

Use Case: Caching

The classic use case is caching: store hot data in Redis so repeat reads come back instantly, sparing your slow database and speeding up the app.

Use Case: Session Store

Redis is great for user session data. Any server can read the shared session, so it scales web apps where requests hit different machines.

Use Case: Real-time Features

Speed plus rich data structures make Redis ideal for real-time features: leaderboards, live analytics, and Pub/Sub messaging between services.

Redis Architecture: Client-Server

Redis uses a client-server model: the server runs as a process waiting for connections, and your clients send commands and get responses back.

How We Interact with Redis

Two ways to talk to Redis: the redis-cli for manual testing and admin, or client libraries (Python, Java, Node) for talking to it from your code.

Quick Check: Redis Basics

Based on what you've learned, which of the following are key characteristics or common use cases of Redis?

Redis: Fast, Flexible, Fundamental

Recap: Redis is an in-memory key-value store, fast by design, used for caching, sessions, and real-time features over a simple client-server architecture.

เริ่มต้นได้ฟรี

เรียนรู้ Redis Caching & Messaging (Pub/Sub, Streams) ด้วย AI tutor — ฟรี

เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป

คอร์ส
12
บทเรียน
48

คำถามที่พบบ่อย

บทเรียน “บทนำสู่ Redis” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “บทนำสู่ Redis” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Redis Caching & Messaging (Pub/Sub, Streams) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Redis Caching & Messaging (Pub/Sub, Streams) มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “บทนำสู่ Redis”

สำรวจว่า Redis คืออะไร มีสถาปัตยกรรมอย่างไร และใช้ในงานพัฒนาแอปพลิเคชันด้านใดบ้าง คุณปฏิบัติ Redis Caching & Messaging (Pub/Sub, Streams) ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Redis Caching & Messaging (Pub/Sub, Streams) หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Redis Caching & Messaging (Pub/Sub, Streams) บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน

บทเรียน “บทนำสู่ Redis” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Redis Caching & Messaging (Pub/Sub, Streams) นี้ได้ไหม

ได้ บทเรียน Redis Caching & Messaging (Pub/Sub, Streams) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. บทนำสู่ Redis
  2. พื้นฐาน Redis CLI
  3. โครงสร้างข้อมูลหลักของ Redis
  4. การหมดอายุของคีย์และ TTL ใน Redis
← กลับไปที่ Redis Caching & Messaging (Pub/Sub, Streams)