Skip to content

Dreamy-Jy/rust-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Rust HTTP Server

Created for educational purposes only. This is a rust http file server for vite generated static files.

Topics Learned:

Replication

The frontend is generated via this script

deno run -RWE npm:create-vite-extra@latest

With these configurations:

# relevant configuration
✔ Select a template: › deno-react
✔ Select a variant: › TypeScript

Backend uses the standard cargo init command.


Rust

Iteration Abstraction Ownership

  • Automatic Drops

Defensive programming.

Stack and Heap Automatic Drops Channels

alternative async

Opentelemetry

Logs, Metrics, Trace

Potential Side Quests:

  • Investigate how variables are allocated in rust.
  • Create custom channels
    • Socket based
    • Memory Based: for sending signals to child threads, in order of receiving them.
  • Do a trace of system calls.(use provided tools, kernel code reads)
  • Build an Operating System
  • Using io_uring instead of direct syscalls for this.
  • Make this production ready.
  • Program the kernel:
    • build this server into the kernel
    • Build an in kernel monitoring solution
      • eBPF, straight kernel
    • use eBPF
    • write my own syscall
    • write my own file system (enable poll use on my files, abstract over a popular site i.g. google)

About

basic concurrent http file server build with syscalls and rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published