This is an SSE server designed to push the event in a certain interval.
- JDK11
- gradle
gradle clean build
java -jar build/libs/netty-0.0.1-SNAPSHOT.jar
-
-
GET
-
/public/ping/subscribe
-
Media type:
Content-Type: text/event-stream;charset=UTF-8
{"id":"e26e1c66-98a9-4cc7-8d36-347ace6ce810","epoch":1616665061,"time":"15:37:41","event":"PING","data":" id->1 total consumer->:1"} {"id":"1f902d1e-4b19-46b6-ab54-0b3d840437e5","epoch":1616665055,"time":"15:37:35","event":"PING","data":" id->1 total consumer->:1"}
-
-
-
GET
-
/public/file
-
Media type:
Content-Type: text/html;charset=UTF-8
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"> ................. </html>
-
used visualvm
to measure the stat.