Skip to content

PasanT9/SSE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSE POC for APK

Build SSE Backends

  1. ) Switch to chat_server and run docker build command

docker build -t sse-chat-server:latest .

  1. ) Switch to sse_server and run docker build command

docker build -t sse-server:latest .

Build Envoy Image

Switch to envoy and run docker build command

docker build -t envoy-proxy:latest .

(Optional) If need change the envoy.yaml and rebuild the image

Apply K8s resources

Switch to K8sresources and run following commands

kubectl create namespace apk

kubectl apply -f . -n apk

kubectl port-forward service/envoy-proxy 9095:9095 9901:9901 -n apk

Try Out Use case

SSE Stream

curl http://localhost:9095/sse

SSE Chat

curl http://localhost:9095/chat/stream

curl http://localhost:9095/chat/send -X POST -d "message=Hello"

About

SSE POC for APK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 42.0%
  • Python 40.2%
  • Dockerfile 17.8%