Ocelot 资源汇总
前言
最近一兩年.NET Core的關(guān)注度持續(xù)上升, 微服務(wù)及云原生應(yīng)用開發(fā)上采用.NET Core也越來越多,Ocelot 作為.NET Core平臺下一款開源的API 網(wǎng)關(guān)開發(fā)庫越來越得到社區(qū)的認(rèn)可,應(yīng)用到生產(chǎn)中的案例也有好幾百了。春節(jié)抽空整理了現(xiàn)有網(wǎng)上公開的Ocelot相關(guān)的資源,包括示例項目、擴(kuò)展插件、博客文章、視頻等, 供大家參考。
我把整理好的資源放在github:https://github.com/geffzhang/awesome-ocelot,歡迎大家一起來豐富這個資源,資源來自全世界,所以內(nèi)容以世界語言英文方式組織。
系列文章
Developing an Open Source API Gateway at Moonpig
Designing and implementing API Gateways with Ocelot in .NET Core containers and microservices architectures
Implement API Gateways with Ocelot
Building API Gateway Using Ocelot In ASP.NET Core - Basic
Building API Gateway Using Ocelot In ASP.NET Core - Authentication
Building API Gateway Using Ocelot In ASP.NET Core - Logging
Building API Gateway Using Ocelot In ASP.NET Core - Rate Limiting
Building API Gateway Using Ocelot In ASP.NET Core - QoS (Quality of Service)
Building API Gateway Using Ocelot In ASP.NET Core - Load Balancing
Building API Gateway Using Ocelot In ASP.NET Core - Service Discovery (Eureka)
Microservices with IdentityServer4 and Ocelot Fronting a .NET Core API
Ocelot簡易教程
Ocelot API網(wǎng)關(guān)的實現(xiàn)剖析
基于Ocelot的API網(wǎng)關(guān)實現(xiàn)--http/https協(xié)議篇
基于Ocelot的API網(wǎng)關(guān)Relay實現(xiàn)--RPC篇
.NET Core微服務(wù)實戰(zhàn)-統(tǒng)一身份認(rèn)證 開篇及目錄索引
從系列文章中第一篇是Tom 當(dāng)時所在的公司 的文章,你可以了解到Ocelot的誕生過程,這里面很多文章都是我們身邊的同學(xué)寫的,比如7篇文章雖是英文的,但是你知道他是NCC的項目https://github.com/dotnetcore/EasyCaching?作者黃文清同學(xué)哦,后面的幾篇中文的文章更是把Ocelot如何擴(kuò)展寫的很清楚了。
圖書
.NET Microservices Architecture Guidance
目前涉及到Ocelot的圖書只有一本微軟.NET團(tuán)隊寫的《.NET 微服務(wù):適用于容器化 .NET 應(yīng)用程序的體系結(jié)構(gòu)》引用的微服務(wù)應(yīng)用程序?eShopOnContainers?使用的是?Ocelot,這是一個簡單的輕量級 API 網(wǎng)關(guān),可與微服務(wù)/容器一起部署到任意位置
會議演講
.NET Core 在騰訊財付通的企業(yè)級應(yīng)用開發(fā)實踐
雖然我在社區(qū)舉辦過多次活動介紹Ocelot, 錄制有視頻的是2017年我和徐玉濤在微軟Summit 2017上的演講,當(dāng)時.NET Core 2.0 還是剛發(fā)布,我們當(dāng)時線上跑的是1.1版本,其中也涉及到了定制Ocelot的內(nèi)容都是上面的文章中有詳細(xì)的文字闡述。
社區(qū)項目
Ocelot Extensions is the project containing some extension to the popular open-source API Gateway engine Ocelot
Ocelot.Provider.Database
This library makes ocelot easy to integrate swagger
SwaggerHelper 工具是在使用 Ocelot 時,為了將多個微服務(wù)的 Swagger.json 文件進(jìn)行合并,以方便在 API 網(wǎng)關(guān)中使用 Swagger 工具
MMLib.SwaggerForOcelot contains swagger extension for ocelot
Ocelot.JWTAuthorize is a JWT Authorize based on Ocelot API Gateway
Ocelot.Security.AuthorizationToken.EntityFramework
grpc service gateway used ocelot
grpc service gateway used ocelot
Repo for ZooKeeper integration with Ocelot
Repo for Etcd integration with Ocelot
Orleans can use Ocelot Api Gateway
Ocelot 的配置工具
A configuration editor for Ocelot
Ocelot 作為一款擴(kuò)展性很強(qiáng)的開發(fā)庫,社區(qū)中也涌現(xiàn)了很多非常有價值的項目,這些項目都是在生產(chǎn)環(huán)境應(yīng)用過的,讓有定制需求的同學(xué)少走很多彎路,這也體現(xiàn)了這個項目的活躍性。
開源貢獻(xiàn)者
Tom Pallister
Philip Wood
geffzhang
阿凌
Phil Proctor
Thiago Loureiro
Felix Boers
Marcelo Castagna
Ocelot 現(xiàn)在一起參與貢獻(xiàn)過代碼的63位,我這里只列出了在項目中持續(xù)活躍的以及對項目有重要貢獻(xiàn),這個列表我還會持續(xù)更新。
示例項目
FamilyBucket 集合.net core、ocelot、consul、eventbus、configserver、tracing、sqlsugar等構(gòu)建的微服務(wù)一條龍應(yīng)用示例
Simple samples that use Ocelot to build API Gateway
DMS將會是一個集中式的中間件框架,每一個小型中間件將會是完全獨(dú)立的,如:gRPC,Thrift,netty,Wcf,Exceptionless,Ocelot,RabbitMQ,Redis,IdentityServer,Consul,Zookeeper等,Demo中會有每一個中間件的實例方便開發(fā)者了解
基于Consul + .NET Core + Polly + Ocelot + Exceptionless + IdentityServer等開源項目的微服務(wù)開發(fā)框架
Ocelot使用案例,結(jié)合IdentityServer4進(jìn)行鑒權(quán),結(jié)合Consul進(jìn)行服務(wù)治理
一個基于IdentityServer4和Ocelot的統(tǒng)一驗證與授權(quán)ASP.NET Core微服務(wù)示例程序項目
基于ocelot擴(kuò)展自定義網(wǎng)關(guān)
ASP.NET Core 2.2 Web API Gateway Demo
集IdentityServer4,Ef Core,dapper,Policy,領(lǐng)域驅(qū)動設(shè)計,consul,zipkin,Swagger,Cap+RabbitMq,Ocelot網(wǎng)關(guān)一體的項目
docker Ocelot Console Identityserver4
重寫Ocelot配置文件獲取方式從數(shù)據(jù)庫中獲取,并重寫認(rèn)證以及限流功能。可以針對每個客戶端對每個API的訪問進(jìn)行限制
相對于擴(kuò)展組件,有很多同學(xué)在研究學(xué)習(xí)Ocelot,以及投入生產(chǎn)項目以示例的形式在github上開源,這些項目不僅僅是圍繞Ocelot,同時圍繞.NET Core的微服務(wù)的各個方面都會有涉及,也是大家打造微服務(wù)框架的一個參考項目,我這里節(jié)選了github上面的一部分項目,發(fā)現(xiàn)這些項目都是中文的,肯定都是我們身邊的同學(xué)貢獻(xiàn)的。
視頻
https://www.youtube.com/watch?v=kl-NeEAb1WQ
https://www.youtube.com/watch?v=Kvj1g6dLAZw
Ocelot Api Gateway with ASP.NET Core 2.1 and VS Code
Tencent updates web and mobile payment infrastructure for better scalability and agility
有幾個視頻都需要借助梯子,老外做的幾個視頻很不錯,最后一個視頻是微軟和我們一起拍攝的3分鐘的宣傳視頻。
用戶
歡迎大家 在這里提供你們使用Ocelot的信息?https://github.com/geffzhang/awesome-ocelot/issues/1?,據(jù)說所知目前Ocelot的用戶案例是很多的,我創(chuàng)建了一個國內(nèi)的Ocelot用戶的微信群,當(dāng)前只要列了兩個大用戶。
Ocelot項目的Star 增長圖
截至2019.2.11,Ocelot項目目前有Star 3076個,從上圖可以看出從.NET Core 2.0發(fā)布以來,增長的曲線是一條筆直上升圖,這也側(cè)面反應(yīng)了.NET Core的采用率也在直線上升。
原文地址:https://www.cnblogs.com/shanyou/p/10363360.html
.NET社區(qū)新聞,深度好文,歡迎訪問公眾號文章匯總 http://www.csharpkit.com
總結(jié)
以上是生活随笔為你收集整理的Ocelot 资源汇总的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: API标准化成为技术团队面临的最大挑战
- 下一篇: 语言之争与读书有感