Skip to content

WebSocket 기반의 스케일 아웃 고려한 Realtime Pub/Sub Baas API Server

Notifications You must be signed in to change notification settings

amathon-2019/real-time-ws-pubsub-baas-api

Repository files navigation

real-time-ws-pubsub-baas-api

real-time-ws-pubsub-baas-api

Stack

sanic
async, asyncio-redis

Managing Channel

HTTP

Channel List(GET)

http://{hostname}/v1/channel

response :

{
    "data": [
        {
            "channel_name": "a_channel",
            "cnt": 3,
            "rpm": 0
        }
    ]
}

Publish(POST)

http://{hostname}/v1/channel/<channel_name>/publish

response:

{
    "status": "ok"
}

WS

Channel Event

http://{hostname}/channel/{channel_name}/
  • subscribe
  • channel data set redis
  • websocket send & receive response:
{
    "header":"exchange", 
    "body": {"msg":"ok"}
}

About

WebSocket 기반의 스케일 아웃 고려한 Realtime Pub/Sub Baas API Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published