Commit graph

6 commits

Author SHA1 Message Date
Cipher Vance
8dd316daf1 fix: update base image from deprecated buster to bullseye for security and availability 2025-08-25 14:04:52 -05:00
Cipher Vance
e52d0c61ca perf: optimize production deployment with tuned gunicorn settings and health checks 2025-08-25 14:01:20 -05:00
Cipher Vance
6bf6d15fbe Refactor email sending for non-blocking performance and add request timing
• Dockerfile: bump Gunicorn workers to 4 for concurrent request handling
• server.py:

- Load SMTP credentials once at startup
- Wrap send_confirmation_email in a daemon Thread for “fire-and-forget” delivery
- Replace print() with structured app.logger.error() on failure
- Add before_request/after_request hooks to log per-request durations
- Use context manager for SMTP_SSL connections (auto-close)
- Simplify route JSON responses and HTTP methods declarations
- Retain existing DB logic but recommend low DB connect_timeouts
- Ensure Flask binds on 0.0.0.0 in development
These changes eliminate request blocking on email I/O, expose request latencies in logs, and improve overall concurrency.
2025-08-25 12:30:25 -05:00
Blake Ridgway
c249c31b8f (feat): Added production level deployment 2025-02-13 19:14:07 +00:00
Blake Ridgway
f8f8c773cc (feat): Init concept of coming soon landing page 2025-01-05 21:03:42 -06:00
Blake Ridgway
18bcafe29b first commit 2024-12-29 20:12:21 -06:00