1. 程式人生 > >Service Mesh vs API Gateway

Service Mesh vs API Gateway

Service Mesh vs API Gateway

In one of my previous articles on service mesh, there were a couple of questions related to the relationship between Service Mesh and API Gateway. So, in this post, I’m planning to discuss the usage of Service Mesh and API Gateway. 
In order to differentiate API Gateways and service mesh, let’s have a closer look at the key characteristics API Gateways and Service Mesh.

API Gateway: Exposes your services as managed APIs

The key objective of using API Gateway is to expose your (micro) services as managed APIs. So, the API or Edge services that we develop at the API Gateway layer serves a specific business functionality.

  • API/Edge services call the downstream (composite and atomic) microservices and contain the business logic that creates compositions/mashups of multiple downstream services.
  • API/Edge services also need to call the downstream services on the resilient manner and apply various stability patterns such as Circuit Breakers, Timeouts, Load Balancing/Failover. Therefore most of the API Gateway solutions out there have these features built in.
  • API Gateways also come inbuilt support for service discovery, analytics(observability: Metrics, monitoring, distributed logging, distributed tracing.) and security.
  • API Gateways closely work with several other components of the API Management ecosystem, such as API marketplace/store, API publishing portal.

Service Mesh

Now let’s look at how we can differentiate Service Mesh.

  • Service Mesh is a network communication infrastructure which allows your to decouple and offload most of the application network functions from your service code.
  • Hence when you do service-to-service communication, you don’t need to implement resilient communication patterns such as Circuit breakers, timeouts in your service’s code. Similarly, service mesh provides other functionalities such as service discovery, observability etc.

API Gateway and Service Mesh in Action

The key differentiators between API Gateways and service mesh is that API Gateways is a key part of exposing API/Edge services where service mesh is merely an inter-service communication infrastructure which doesn’t have any business notion of your solution.

Figure 1 illustrates how API Gateway and service mesh can exist. As we discussed above, there are also some overlapping features (such as circuit breakers etc.) but it’s important to understand these two concepts are serving fundamentally different requirements.

相關推薦

Service Mesh vs API Gateway

Service Mesh vs API GatewayIn one of my previous articles on service mesh, there were a couple of questions related to the relationship between Service Mes

Service MeshAPI Gateway的關係探討(譯文)

目錄Service Mesh vs API Gateway在前一篇關於Service Mesh的文章中,我提到了幾個關於Service Mesh和API Gateway之間關係的問題,在本篇文章中,我打算就Service Mesh和API Gateway的用途進行進一步討論。

原理解析Service Mesh與ESB、API管理與訊息代理的關係

轉載自公眾號 EAWorld。 作者:Christian Posta 譯者:海松 原題:Application Network Functions With ESBs, API Management, and Now.. Service Mesh?

api-gateway實踐(3)Linux環境啟動

iad system 啟動mysql lin edi sql 查看 redis mysq 1、啟動、查看mysql 1.1、啟動mysql systemctl status mariadb 1.2、查看mysql systemctl status m

api-gateway實踐(4)網關服務集成驗證

pig server 服務集 blank 網關 ces ron ken localhost 原始服務地址: http://10.110.17.20:7070/spring-oauth-server/m/user_info?access_token=8d671613-da31

api-gateway

包括 詳細介紹 idp ati sdn 命令 rop uri 密碼 #spring-oauth-server <strong>Spring與OAuth2的整合</strong> 項目用Maven管理, 字符編碼: UTF-8 使用的技術與版本號<

api-gateway實踐(12)新服務網關 - 審批產生網關身份!

服務 1.2 界面 resource details sco grant .cn 後臺 一、創建網關側身份 1、client身份(oauth_client_details) 1.1、數據結構 1.2、界面代碼 <form id="formDto" cla

api-gateway實踐(15)新服務網關 -運行環境搭建

index 列表 svc 環境搭建 1-1 cred dex .com 運行環境搭建 一、運行環境 10.110.17.20 /opt/tomcat8.5.15/webapps http://10.110.17.20:7070/admin 二、應用列表 服務消費者: htt

api-gateway實踐(19)InputStream的復用

數組下標 例如 本地緩存 api 標記 擔心 部分 supported aos 相關鏈接: inputstream復制:http://www.cnblogs.com/happyaday/p/4616023.html 對象克隆:https://zhidao.baidu.com

api-gateway實踐(8)新服務網關 - 第二次評審結果匯總

完成 image nbsp 實踐 編寫 表達 res 添加 logs 一、王靜 1、緩存數據同步問題 2、組 上線下線 3、創建分組後集市默認不顯示 有version時顯示 4、inspur-app 改為網關認證 5 、url,正則表達式? 6 、api 編輯可以修改方法

api-gateway實踐(7)新服務網關 - 網關請求監控統計

version 提供者 evc 響應 vclient nbsp 日期時間 實時監控 red 一、實時監控 用戶點擊服務實例,系統顯示服務實例-version下的api列表, 用戶點擊某個api的如下兩個圖標 1、API請求次數監控 橫軸:時間,粒度為分鐘 縱軸:請求訪問次數

api-gateway實踐(8)新服務網關 - 測試發布(服務端API

isp logs rest span com 點擊 功能 size json對象 一、網關引擎 網關引擎地址:http://10.110.20.191:8080/api-gateway-engine/ 二、服務提供者 服務提供者地址:http://10.110.20.19

api-gateway實踐(13)新服務網關 - SpringCloud Zuul

pan ont 智能路由 比較 網關 span 較差 方式 差異 一、兩種方式 1、原生zuul擴展 2、SpringCloud Zuul 二、比較差異 1、心跳檢測(欠缺) 2、斷路保護(欠缺) 3、智能路由(簡單) 4、監控方式(待研究)api-gateway實踐(13

api-gateway-engine知識點(2)

val oca ins exc finally jedis throws import nec GroupVersion實現engine本地緩存 package com.inspur.cloud.apigw.engine.cache; import java.util.Ma

API Gateway - KONG 安裝與配置

path .tar.gz starting api ken spa centos 實現 ner 簡介   Kong,是由Mashape公司開源的,基於Nginx的API gateway 特點  可擴展,支持分布式   模塊化 功能:授權、日誌、ip限制、限流、api 統計分

用Azure上Cognitive Service的Face API識別人臉

path python程序 src width not pre ons nco ins Azure在China已經發布了Cognitive Service,包括人臉識別、計算機視覺識別和情緒識別等服務。 本文將介紹如何用Face API識別本地或URL的人臉。 一 創建Co

聊聊 API Gateway 和 Netflix Zuul

使用 網頁 不同的應用 官方 tel 數據 content hystrix 跳轉 轉自:http://www.scienjus.com/api-gateway-and-netflix-zuul/?hmsr=toutiao.io&utm_medium=toutiao.

Service Mesh對企業安全而言意味著什麽?

Service Mesh 企業安全 你聽說過Service Mesh(服務網格)嗎? 我相信你聽說過。Service Mesh正成為容器生態圈愈發重要的一部分。 本文將簡要概述Service Mesh的作用,並深入探討它們對於企業安全性的意義。Service Meshes是什麽?它為何如此重要?連接問

0601-Zuul構建API Gateway-API gateway簡介

code 接受 嘗試 創建 AI 指標 文件 丟失 位置 一、API Gateway簡介 參看:http://www.cnblogs.com/bjlhx/p/8794437.html 二、zuul簡介【路由器和過濾器:Zuul】   在微服務架構的組成部分進行路由。例

深入解讀Service Mesh背後的技術細節

調用 數據模型 什麽 比較 正常 應用 ffi gcs dsl 本文由 網易雲 發布。 作者:劉超,網易雲首席解決方案架構師 在Kubernetes稱為容器編排的標準之後,Service Mesh開始火了起來,但是很多文章講概念的多,講技術細節的少,所以專門寫一篇