Skip to content

lalitx17/server_pulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Pulse

A HTTP server that can handle requests and generate responses concurrently. It serves the metrics about the system.

Features

  • Parse the requests
  • generates the responses
  • can add routes
  • can add tasks to the task queue
  • can use the threads from the thread pool to handle the requests concurrently
  • Linux based system Support(for metrics)
  • Windows Support

Folder Structure

server-pulse/
├── examples/                  # API request handlers and endpoints
├── metrics/                   # Gather the PC metrics
├── request/                   # Parse the requests
├── response/                  # Handle the responses
├── route/                     # Handle the routes
├── task_queue/                # Handle the task queue
└── thread_pool/               # Handle the thread pool
└── server/                    # building and managing the server

1. /cpu Endpoint

  "cpu_usage_percent": float,
  "cpu_count": int,
  "cpu_model": string,
  "processes_count": int

2. /memory Endpoint

  "total_memory": float,
  "free_memory": float,
  "cached_memory": float,
  "swap_total": float,
  "swap_free": float,
  "memory_pressure": float

3. /disk Endpoint

  "total_disk": float,
  "free_disk": float,
  "used_disk": float,
  "disk_usage": float

Reference

RFC7230

About

concurrent server that informs the client about its health(built from scratch)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published