Building an HTTP Server with Zig, Zap, and Postgres - My thoughts and a code walkthrough

Code With Cypert February 1, 2025
Video Thumbnail
Code With Cypert Logo

Code With Cypert

@codewithcypert

About

Learn new and exciting techniques and patterns in Zig, Dart, Golang, TypeScript, and much more!

Video Description

I built a web server with Zig, Zap and Postgres! Zap is the zig replacement for the REST APIs that the framework author used to write in python with Flask and mongodb, etc. It can be considered to be a microframework for web applications. Postgres is an open-source relational database management system (RDBMS). It's designed for enterprise-level performance and is used by many popular web frameworks. This video walks through how I put these tools together to create a web API as well as some of the many pain points that I ran into along the way. Ultimately, I’m uncertain if I’ll continue building with Zap going forward. It has a lot of strong selling points, but the rough edges caused a lot of pain for me, and I think I align more with the API provided by Zinc instead of Zap. What are your thoughts? Are you building web APIs in Zig? Lemme know in the comments. I read every single one. Source code: https://github.com/bradcypert/yt/tree/main/zigpg

You May Also Like