โครงข่ายบริการและการสังเกตได้
ดูว่าโครงข่ายบริการส่งข้อมูลวัดระยะไกลโดยอัตโนมัติผ่านพร็อกซีไซด์คาร์ได้อย่างไร สัญญาณสำคัญใดที่แสดงออกมา และข้อแลกเปลี่ยนของการสังเกตได้บนโครงข่ายบริการมีอะไรบ้าง
โครงข่ายบริการและการสังเกตได้ เป็นบทเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
What Is a Service Mesh?
A service mesh is an infrastructure layer that manages service-to-service communication. It handles routing, security, and observability without changing application code.
The Sidecar Pattern
The mesh injects a sidecar proxy next to each service. All traffic flows through the proxy, which can measure and report on it.
pod:
- container: app
- container: envoy (sidecar proxy)Automatic Telemetry
Because every request passes through proxies, the mesh emits metrics, traces, and access logs for all services without instrumentation.
Golden Signals for Free
The mesh exposes request rate, error rate, and latency for each service and connection, the RED signals, automatically.
istio_requests_total
istio_request_duration_millisecondsMesh-Generated Traces
The proxy can start and propagate trace context, producing spans for every hop between services even if the app is not instrumented.
The Limit of Mesh Tracing
The mesh sees network hops but not what happens inside a service. To connect mesh spans, apps must still propagate the incoming trace headers.
app must forward: traceparent, b3, or x-request-idService Topology
Because the mesh sees all traffic, it can build a live service dependency map showing who calls whom and where errors flow.
Common Meshes
Popular meshes include Istio and Linkerd. They differ in proxy choice and overhead but share the sidecar observability model.
- Istio: Envoy proxies, rich features
- Linkerd: lightweight micro-proxy
Exporting Mesh Data
Mesh telemetry typically flows to Prometheus for metrics and to a tracing backend like Jaeger through the OpenTelemetry Collector.
envoy -> OTel Collector -> Jaeger / PrometheusTrade-Offs
The mesh buys observability cheaply but adds latency and resource cost per proxy, and its spans lack in-process detail.
- Pro: zero-code coverage
- Con: proxy overhead, shallow spans
Mesh Plus App Telemetry
Best practice combines mesh-level network telemetry with in-app instrumentation for internal logic, giving both breadth and depth.
Quick Check
Pick the key benefit of a service mesh for observability.
Recap
You learned that a service mesh uses sidecar proxies to produce automatic metrics, traces, and topology for service-to-service traffic without code changes. Mesh spans cover network hops but not internal logic, and apps must still propagate trace headers, so combining mesh and app telemetry gives full coverage.
เรียนรู้ System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ด้วย AI tutor — ฟรี
เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป
- คอร์ส
- 12
- บทเรียน
- 48
คำถามที่พบบ่อย
บทเรียน “โครงข่ายบริการและการสังเกตได้” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “โครงข่ายบริการและการสังเกตได้” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “โครงข่ายบริการและการสังเกตได้”
ดูว่าโครงข่ายบริการส่งข้อมูลวัดระยะไกลโดยอัตโนมัติผ่านพร็อกซีไซด์คาร์ได้อย่างไร สัญญาณสำคัญใดที่แสดงออกมา และข้อแลกเปลี่ยนของการสังเกตได้บนโครงข่ายบริการมีอะไรบ้าง คุณปฏิบัติ System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน
บทเรียน “โครงข่ายบริการและการสังเกตได้” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) นี้ได้ไหม
ได้ บทเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- การสังเกตระบบสำหรับไมโครเซอร์วิส
- เครื่องมือสังเกตระบบ Kubernetes
- ความท้าทายด้านการสังเกตระบบแบบไร้เซิร์ฟเวอร์
- โครงข่ายบริการและการสังเกตได้