Skip to main content
Answers to common questions about Mizu, its features, and how to use it effectively.

General Questions

What Go version is required?

Go 1.22 or later. Mizu uses Go 1.22’s enhanced ServeMux patterns for route matching with path parameters.

Can I use Mizu with existing net/http code?

Yes! Mizu is built on net/http and is fully compatible:

How does Mizu compare to Gin/Echo/Fiber?

Is Mizu production-ready?

Yes. Mizu is designed for production use with:
  • Graceful shutdown
  • Panic recovery
  • Health check endpoints
  • Structured logging
  • Battle-tested middleware

Performance Questions

Is Mizu fast?

Mizu is fast enough for most applications. Benchmarks show:
  • ~100k requests/second for simple JSON responses
  • ~1μs overhead per request vs raw net/http
  • Minimal allocations using Ctx pooling
For most applications, the database or external services are the bottleneck, not the framework.

What about memory usage?

Mizu has low memory overhead:
  • ~5MB base memory for empty app
  • ~1KB per active connection
  • Ctx objects are pooled and reused

How does Mizu handle concurrency?

Each request runs in its own goroutine (standard Go behavior). Mizu doesn’t add locks in the hot path:

Feature Questions

Does Mizu support WebSockets?

Yes, via the websocket middleware:

Does Mizu have database integration?

Mizu doesn’t include an ORM — use any Go database library:
Popular choices:
  • database/sql - Standard library
  • sqlx - Enhanced SQL
  • GORM - Full ORM
  • Ent - Graph-based ORM
  • sqlc - SQL to Go code

What authentication options are available?

Multiple authentication middlewares:

Can I use GraphQL with Mizu?

Yes, mount a GraphQL handler:

Development Questions

Is there hot reload?

Yes, use mizu dev:
Or use external tools like air:

How do I test handlers?

Use httptest:

How do I debug requests?

Enable debug logging:
Use request body dumping:

Deployment Questions

How do I deploy with Docker?

What cloud platforms are supported?

Any platform that runs Go binaries:
  • AWS: EC2, ECS, Lambda (with adapter)
  • Google Cloud: Cloud Run, GKE, Compute Engine
  • Azure: Container Apps, AKS
  • Others: DigitalOcean, Fly.io, Railway, Render

How do I run on Kubernetes?

Troubleshooting

”pattern conflicts with existing pattern”

Routes must be unique. Check for conflicts:

“context canceled”

The client disconnected before the response was sent. This is normal:

Middleware not running

Check middleware order:

Response already written

Don’t write multiple responses:

Getting Help

Discord

Chat with the community.

GitHub Issues

Report bugs or request features.