OCaml
lthms's profile
Thomas Letan@lthms•Dec 26, 2024
130
Post cover image

Serving This Article from RAM with Dream for Fun and No Real Benefit

From soap.coffee•Dec 26, 2024•17m read time

An experiment was conducted to serve a website directly from RAM using an ad hoc HTTP server built with Dream in OCaml. The website's content was embedded within the program, and Docker was used to build deployable binaries. Despite the fun and learning experience, there were no significant performance benefits compared to serving the website using Nginx. Key topics include setting HTTP headers, handling static binaries, and using Dream for routing.

Sort:

lthms's user avatar
Thomas Letan
@lthms
Joined Dec 26. 2024
130

Staff Software Engineer at Nomadic Labs

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard