Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ranx99's avatar

Vapor vs Forge ?

I building an e-commerce app and I was wondering if I should use Vapor or Forge.. so I have these questions:

  • Is there a big difference in costs between them?
  • Will I face problems when I go with Vapor? since Its server-less?
  • Is Vapor suitable for every-kind of application?
  • Is Vapor taking Forge place from now on?
  • Which one would you use and why?

Thanks,

0 likes
5 replies
Ranx99's avatar

I have read them before but still having an issue understanding when to use vapor and when to use forge.

6 likes
kurucu's avatar

Some of the big differences:

Vapor:

  • Instant scalability (both ways, it will meet your customer demand, and save you money on quiet days)
  • No infrastructure worries - just focus on the app & code
  • Regional data regulations are easier to handle
  • Small learning curve. It is different. Deployment won't happen from GIT without you setting it up (e.g. GitHub actions). Serverless means no storage, so you'll need to get used to working with S3. Vapor uses CDNs (automatically) for static content, which means a few little optimizations.
  • Set up of databases, domains, storage, caching, queues etc all done for you.
  • Fantastic API

Forge / Ploi / Other

  • Also easy
  • Totally configurable environment
  • low cost and yet performant, up to a ceiling.
  • Predictable costs
  • All of the workings are up to you. Probably fine (with e.g. Forge) but it depends on the complexity of the project, criticality, any data reg rules applicable, and your skill. e.g. Security & maintenance.

Cost differences can be large. You could host a small project on a $5 linode. Starting costs, all things considered, with Vapor are around $50pm, BUT that reduces per-project the more projects you host on Vapor. So if you have any significant deployments, or value the scalability/featureset, then you're likely to quickly see returns here.

Vapor is suitable for all applications except static sites.

Vapor and Forge are in some ways in competition with each other, but also serve different needs. I don't see why one one "take the place of the other" going forward.

Which one would I use? It depends on the project. But, I have switched almost all projects to Vapor and use S3, Netlify and Firebase for static hosting just because.

22 likes
anjanesh's avatar

I was under the impression that forge is like regular / traditional website and with vapor it's only REST endpoints for which we need to deploy a SPA using React or Vue to connect to the Vapor app - no ? Did I miss something ?

kurucu's avatar

@anjanesh This isn't the case at all. Yes, most people probably use Lambda for that; but Vapor allows you to deploy any full Laravel application to it - a blade/livewire app just as easily as a Vue/Inertia or full SPA. In terms of deployment, the only real difference to a server app is storage - you really need to use S3 for most things, and can mount a temporary filesystem for e.g. image manipulation.

1 like

Please or to participate in this conversation.