Urgent.News

What's breaking now, across thousands of outlets.

Tech

Cost-Effective Public Hosting for Typescript/MySQL Monorepo: Optimizing for Small User Base Without Unnecessary Expenses

Introduction Hosting a Typescript/MySQL monorepo application for a small user base (4-5 users) presents a unique challenge: balancing cost-effectiveness with tech stack compatibility . The monorepo structure, managed by Turbo , includes a MySQL-powered backend API , a React/Typescript frontend , and utility scripts for cron jobs and third-party data fetching. Containerized with Docker , the…

Introducing a Typescript/MySQL monorepo for a small user base comes with the challenge of finding a cost-effective hosting solution that matches the specific tech stack while avoiding unnecessary expenses. Popular platforms like Vercel and AWS pose compatibility issues, while free tiers may impose limitations that lead to unexpected costs.

The key mechanisms in this setup are monorepo management (Turbo), Docker containerization, MySQL integration, and scheduled cron jobs. These components necessitate a hosting environment capable of handling complex dependencies and automated tasks without added financial burden.

Budget limitations force small-scale applications to consider free or low-cost options, though these often come with caps on resources, which could incur extra charges if surpassed. Self-hosting on devices like Raspberry Pi may seem cost-effective but adds maintenance challenges and risks related to hardware and network stability.

Analyzing the trade-offs between fully managed services and self-hosted solutions reveals that fully managed options reduce operational overhead but could become costly over time. Serverless functions might lower infrastructure expenses but might introduce latency or execution limits. Replacing MySQL with a lightweight database like SQLite could cut costs but may necessitate substantial code modifications.

For a small-scale Typescript/MySQL monorepo with a user base under 10, Oracle Cloud’s Always Free Tier stands out as the optimal choice. It accommodates Docker containers for seamless deployment, includes a managed MySQL database, eliminates domain purchase costs, and provides generous resource limits suitable for a small user base. However, this solution requires a steeper learning curve and necessitates vigilant monitoring of resource usage to prevent surpassing free tier limits.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I Stopped Managing Servers Manually — Understanding Docker, Amazon ECR, ECS & Fargate

I Stopped Managing Servers Manually — Understanding Docker, Amazon ECR, ECS & Fargate I had already learned how a web application can be built on AWS using EC2, Load Balancers, Auto Scaling, RDS, S3…

  • Developers created Docker images using Dockerfiles.
  • Images stored in Amazon ECR for container management.
  • AWS Fargate managed underlying infrastructure for ECS.

Ollama keep_alive: My Model Reloaded 214 Times in One Day

My local chat app was fast every single time I tested it, and slow every single time I actually used it. That's the tell, and I ignored it for weeks.

  • Ollama experienced performance issues due to model eviction from VRAM.
  • Reporter discovered three model persistence options for Ollama.
  • Adjusting keepalive resolved model reloading delays.

I built 30+ free browser tools for pixel artists in a weekend — here they are

I built 30+ free browser tools for pixel artists in a weekend — here they are I'm LaunchTower. Over the past few weeks I've been building a catalog of small, single-purpose web tools for pixel-art and…

  • Developer built over 30 free browser tools for pixel artists in a weekend
  • Tools run entirely within the browser, no installation or sign-up required
  • Catalog includes tools for palette management, color simulation, sprite editing, and more

I Listened to a Blockchain in Real Time for the First Time. Here's What I Learned.

The Hook I'd read about blockchains plenty. Reading an explorer, querying past data — that felt familiar, like querying any other database.

  • Author sets up real-time blockchain pipeline using Anvil from Foundry toolchain
  • Subscribing to new block headers more efficient than polling for new blocks
  • Utilizes Go's select statement to manage subscription errors and headers

More from Tuesday 15 September →