{"id":22885016,"url":"https://github.com/mark8s/learning-envoy","last_synced_at":"2026-01-08T08:31:01.727Z","repository":{"id":156875726,"uuid":"628548869","full_name":"mark8s/learning-envoy","owner":"mark8s","description":"getting started with envoy","archived":false,"fork":false,"pushed_at":"2023-04-27T02:18:20.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T22:42:23.992Z","etag":null,"topics":["envoyproxy"],"latest_commit_sha":null,"homepage":"https://www.envoyproxy.io/docs/envoy/latest/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mark8s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-16T09:49:57.000Z","updated_at":"2023-04-16T11:07:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc2789a4-2b00-4256-878c-7e0faf640998","html_url":"https://github.com/mark8s/learning-envoy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Flearning-envoy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Flearning-envoy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Flearning-envoy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mark8s%2Flearning-envoy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mark8s","download_url":"https://codeload.github.com/mark8s/learning-envoy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246514186,"owners_count":20790016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["envoyproxy"],"created_at":"2024-12-13T19:30:36.901Z","updated_at":"2026-01-08T08:31:01.680Z","avatar_url":"https://github.com/mark8s.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# learning-envoy\n\nEnvoy is the implementation of Istio's data plane. It is currently very popular, but the threshold for learning it is very high. I hope to help those who want to learn it by recording some of its learning process.\n\n\n## 概念\n\n- Listener: 监听器（listener）是服务(程序)监听者，就是真正干活的。 它是可以由下游客户端连接的命名网络位置（例如，端口、unix域套接字等）。Envoy 公开一个或多个下游主机连接的侦听器。一般是每台主机运行一个 Envoy，使用单进程运行，但是每个进程中可以启动任意数量的 Listener（监听器），目前只监听 TCP，每个监听器都独立配置一定数量的（L3/L4）网络过滤器。Listenter 也可以通过 Listener Discovery Service（LDS）动态获取。\n\n- Listener filter : Listener 使用 listener filter（监听器过滤器）来操作链接的元数据。它的作用是在不更改 Envoy 的核心功能的情况下添加更多的集成功能。Listener filter 的 API 相对简单，因为这些过滤器最终是在新接受的套接字上运行。在链中可以互相衔接以支持更复杂的场景，例如调用速率限制。Envoy 已经包含了多个监听器过滤器。\n\n- Http Route Table: HTTP 的路由规则，例如请求的域名，Path 符合什么规则，转发给哪个 Cluster。\n\n- Cluster : 集群（cluster）是 Envoy 连接到的一组逻辑上相似的上游主机，类似Kubernetes 中的一个 Service 。Envoy 通过服务发现发现集群中的成员。Envoy 可以通过主动运行状况检查来确定集群成员的健康状况。Envoy 如何将请求路由到集群成员由负载均衡策略确定。\n\n- endpoint : 一个具体的“应用实例”，对应 ip 和端口号，类似 Kubernetes 中的一个 Pod。\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark8s%2Flearning-envoy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmark8s%2Flearning-envoy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark8s%2Flearning-envoy/lists"}