ashon / metropolis Goto Github PK
View Code? Open in Web Editor NEWsimple python service gateway framework based NATS messaging
License: MIT License
simple python service gateway framework based NATS messaging
License: MIT License
vibora와 aio nats를 이용해서 http to nats로 프록시하는 서버를 만들어 본다.
endpoint를 nats topic으로 바꾼다.
GET /some/path
to
some.path.GET
정도로 엔드포인트 메서드 조합을 토픽으로 변환해서 넘겨주면 좋을듯..
nats operator 클러스터 규모에 따른 쓰루풋 테스트도 해 보자.
테스트는 python aio nats를 이용
nats admin의 conz를 이용해 proxy에서, api route에 대한 정보를
dynamic하게 읽어올 수 있는 기능이 필요하다.
Need to implement Response data composer
Concept
Async
User ----- Request -----> Proxy ---------> job_a
<---------
---------> job_b
<---------
<---- Response ---- Composed
Response
<job_a, job_b>
external nats: gateway - worker 간의 메시징 담당
internal nats: worker - worker 간의 메시징 담당
+- Node-1 --+ +- Node-2 -+ +- Node-3 --+ +- Node-4 -+
| | | | | | | |
| NATS ========= NATS ======================= NATS | < Internal Bus >
| | | | | | | | | | | |
| Worker-a | | | | | | | | Worker-d |
| Worker-b | | Worker-c | | Worker-a | | Worker-c |
| | | | | | | | | | | |
| NATS ========= NATS ======================= NATS | < External Bus >
| | | | | | | | | |
| HttpProxy | | | | HttpProxy | | |
| | | | | | | | | |
+--- | -----+ +----------+ +--- | -----+ +----------+
| |
+--------------+-------------+
|
Ingress
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.