The gods have heard me, and they brought us #Laravel #Go (I still think these two need their own guild)
I'll keep working on the webhook-radar I mentioned in my previous post to finish testing #Laravel #Rust, but I'm definitely going to switch to Laravel Go
Commit
ee4af35
I still struggle to understand why frameworks are such a compelling idea in Go.
In Rust? Perhaps. The ecosystem and language design involve different trade-offs. But in Go, where the standard library is already quite capable and the ecosystem offers focused, composable libraries for most common needs, I find it harder to justify the need for a full-stack framework.
Take Laravel Go, for example. What problem does it solve that cannot be addressed more effectively through smaller, focused libraries?
One of my concerns is its module structure. Looking at its
go.mod, there are dependencies for databases, Redis, SQLite, OpenTelemetry, gRPC, and several other integrations. Of course, having these dependencies declared does not mean they will all be compiled into an application or included in its binary. That is not my point.
My concern is about the module boundary.
When the entire framework is distributed as a single Go module, all its components share the same versioning and dependency-management boundary. Even if I only need the router or the validation package, I still depend on the framework's overall module and its release cycle.
Why not distribute these components as independent Go modules?
For example:
- laravel-go/router
- laravel-go/database
- laravel-go/cache
- laravel-go/queue
- laravel-go/validation
- laravel-go/concurrency
Each component could have its own go.mod, dependency graph, versioning strategy, and release lifecycle. They could still live in the same repository while remaining independently consumable.
This would not automatically guarantee loose coupling internally, of course. That depends on the actual architecture and dependencies between components. But it would provide a much clearer boundary for dependency management, versioning, and adoption.
I understand the appeal of an integrated framework, especially for teams looking for conventions, consistency, and faster initial development. But Go already gives us a strong foundation for building applications through composition.
I'm not against abstractions, conventions, or even frameworks. I'm questioning whether a large, integrated framework is the right trade-off for Go, and whether its benefits justify the additional dependency and architectural commitments.
For me, Go's strength is not having a framework that provides everything. It's having the freedom to compose exactly what an application needs, without adopting an entire ecosystem along the way.commit ee4af35