3scale

API gateway for WebSocket

拈花ヽ惹草 提交于 2019-12-07 12:44:31
问题 I need a API gateway for my websocket application. Analyse and identify unusual requests from certain IP Quotas and Rate Limiting Statistics Free or commercial Solid performance The sub-protocol of my WebSocket is WAMP, so I am afraid there is no existing product to do the job. I intend to develop one and suppose it will work in this way: There is a proxy (NGINX or HAProxy) installed between my client application and my websocket server The proxy duplicates the request/response to another app

API gateway for WebSocket

拈花ヽ惹草 提交于 2019-12-06 00:06:29
I need a API gateway for my websocket application. Analyse and identify unusual requests from certain IP Quotas and Rate Limiting Statistics Free or commercial Solid performance The sub-protocol of my WebSocket is WAMP, so I am afraid there is no existing product to do the job. I intend to develop one and suppose it will work in this way: There is a proxy (NGINX or HAProxy) installed between my client application and my websocket server The proxy duplicates the request/response to another app, which I call monitor The monitor app analyses the flow and control the proxy to limit/block certain

How can I manipulate the JSON body of a POST request using Nginx and Lua?

谁说胖子不能爱 提交于 2019-11-28 07:41:55
I am doing a proof of concept to demonstrate how we might implement 3scale in our stack. In one example I want to do some POST request body manipulation to create an API façade that maps what might be a legacy API format to a new internal one. Eg. change something like { "foo" : "bar" , "deprecated" : true } into { "FOO" : "bar" } The Lua module docs for content_by_lua , which seems like the appropriate method say Do not use this directive and other content handler directives in the same location. For example, this directive and the proxy_pass directive should not be used in the same location.

How can I manipulate the JSON body of a POST request using Nginx and Lua?

我只是一个虾纸丫 提交于 2019-11-27 02:00:56
问题 I am doing a proof of concept to demonstrate how we might implement 3scale in our stack. In one example I want to do some POST request body manipulation to create an API façade that maps what might be a legacy API format to a new internal one. Eg. change something like { "foo" : "bar" , "deprecated" : true } into { "FOO" : "bar" } The Lua module docs for content_by_lua, which seems like the appropriate method say Do not use this directive and other content handler directives in the same