mhh12121 / Tcp-HttpServerDemo

tcp communication with http

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SAMPLE DEMO

Description

This demo is for Basic RPC communication over socket(TCP).

How to USE

  1. go run tcp_server.go
  2. go run http_server.go
  3. Enter localhost:8089/login in browser

Testing Environment

4GB Memory 4*Intel M-510Yc @ 0.8GHz

Problems

  1. I set unix file open limit up to 4096(default is 1024) so that I can test under 2000 concurrent request. But what if there comes to more requests?
  2. Maybe it's the same question as above: it's mother fucking slow!!! Under 2000 concurrent(Login without redis), it gave me around 600 QPS

About

tcp communication with http


Languages

Language:Go 95.8%Language:HTML 4.2%