Space Cloud is an open-source platform designed to eliminate the need for writing backend code by exposing your databases and custom microservices as secure, real-time GraphQL and REST APIs directly to frontend applications. Built for developers working on modern web and mobile apps, it acts as a unified API gateway between your frontend and backend services—including databases like PostgreSQL, MongoDB, MySQL, and SQL Server—while integrating natively with Kubernetes and Istio for scalability and security. The platform enables developers to focus on frontend development by handling authentication, authorization, scaling, and API generation automatically. However, Space Cloud is now in maintenance mode, with the maintainers recommending Hasura or Wundergraph as alternatives for new projects.
It was originally conceived to bring the simplicity of Firebase and Heroku to Kubernetes, allowing teams to deploy serverless applications without managing backend infrastructure. By validating client queries and dynamically generating SQL/NoSQL statements, Space Cloud prevents direct database access while still enabling powerful CRUD operations, real-time subscriptions, file uploads, and event-driven triggers—all through a consistent API layer.
What You Get
- Instant GraphQL/REST APIs - Space Cloud automatically generates secure, real-time GraphQL and REST endpoints for your databases (PostgreSQL, MongoDB, MySQL, SQL Server) without requiring custom backend code.
- Realtime Data Queries - Subscribe to live data changes in your database using GraphQL subscriptions, enabling features like live dashboards and collaborative apps.
- File Storage Integration - Upload and download files to scalable object stores like Amazon S3 or Google Cloud Storage through a unified API with automatic access control.
- Fine-Grained Access Control - Define dynamic security rules that integrate with Auth0, Firebase Auth, or other identity providers to restrict data access at the row and column level.
- Event Triggers & Serverless Functions - Trigger webhooks or custom HTTP services on database insertions, updates, deletions, or file uploads to run business logic without managing servers.
- Cross-Database Joins - Perform joins across multiple supported databases (e.g., PostgreSQL + MongoDB) via GraphQL, enabling unified data querying without ETL pipelines.
- Auto-scaling to Zero - Automatically scale HTTP workloads up or down based on traffic, including scaling pods to zero when idle, reducing infrastructure costs.
- Service Mesh Integration - Leverage Istio capabilities like traffic routing, mTLS encryption, and policy enforcement without learning complex service mesh configurations.
- Custom Microservice Integration - Expose your existing HTTP microservices through Space Cloud’s GraphQL API and perform joins between them and database tables.
Common Use Cases
- Building a real-time analytics dashboard - A SaaS product needs live updates from PostgreSQL and MongoDB data; Space Cloud provides real-time GraphQL subscriptions and row-level security without writing a single backend endpoint.
- Creating a mobile app with user uploads - A photo-sharing app uses Space Cloud to handle file uploads to S3, enforce per-user access rules, and expose user data via GraphQL—all without a Node.js or Python backend.
- Problem → Solution flow: Need to expose multiple databases to frontend without building a custom API layer - Developers avoid writing CRUD microservices for MySQL, MongoDB, and SQL Server by using Space Cloud’s auto-generated APIs with built-in authentication and joins.
- Team workflow: DevOps teams managing multi-cloud microservices - Teams use Space Cloud as a unified API gateway to route requests between Kubernetes-hosted services, databases, and file storage with Istio integration for secure, scalable traffic management.
Under The Hood
Space Cloud is a unified API gateway and backend-as-a-service platform designed to simplify modern application development by offering integrated solutions for authentication, database operations, and real-time features. It leverages a hybrid Go and Scala architecture to support event-driven systems and Kubernetes-native deployment.
Architecture
This system adopts a modular, layered architecture that separates core services such as event handling and gateway functionality. It integrates database change capture with Kubernetes for seamless deployment and state management.
- Combines Go-based core services with Scala modules for event processing and stream handling
- Implements a clear separation between database event processing and spacecloud integration
- Emphasizes Kubernetes-native configuration and state tracking for scalable deployments
Tech Stack
Built as a hybrid Go and Scala application, Space Cloud uses modern cloud-native tools to support microservices and distributed systems.
- Primarily implemented in Go with a smaller Scala component for event-driven logic
- Heavily integrates with Kubernetes, Debezium, and various Go libraries for configuration and HTTP handling
- Employs Docker for containerization, SBT for Scala builds, and standard Go tooling for development
- Features comprehensive test suites including unit, integration, and service-level testing
Code Quality
The codebase reflects a mixed quality with polyglot implementation and inconsistent testing practices across modules.
- Testing efforts are limited, with minimal coverage and repetitive test function naming
- Error handling varies across modules, relying on generic exception handling and try/catch blocks
- Code consistency is inconsistent due to the use of multiple languages and frameworks
- Type annotations are present but not uniformly applied across all components
What Makes It Unique
Space Cloud stands out through its integration of real-time database eventing, Kubernetes-native design, and modular service coordination.
- Leverages Debezium for real-time database change capture and event sourcing in a Kubernetes environment
- Offers deep integration with Kubernetes for configuration, offset tracking, and project state management
- Includes a modular sync manager that enables decoupled coordination of CRUD, file storage, and routing services
- Provides a unified gateway with built-in admin tools and extensibility hooks for custom logic