Exploring Space Cloud: Instant Realtime API for Serverless Apps

In the rapidly evolving world of cloud computing and application development, Space Cloud has emerged as a powerful platform that combines the best features of Firebase and Heroku. Designed to help developers build, deploy, and secure serverless applications on Kubernetes, Space Cloud offers a robust and flexible environment for modern application development. This blog post delves into the intricacies of Space Cloud, its features, and how it can revolutionize your development workflow.

Introduction to Space Cloud

Space Cloud is a Kubernetes-based serverless platform that provides instant, real-time APIs on any database. With event triggers and unified APIs for custom business logic, Space Cloud simplifies the process of building modern applications without the need to write extensive backend code. This open-source platform is ideal for developers looking to leverage the power of Kubernetes while maintaining a streamlined and efficient development process.

Key Features of Space Cloud

Space Cloud boasts a comprehensive set of features designed to enhance the development, deployment, and security of serverless applications. Some of the standout features include:

  1. Powerful CRUD Operations: Space Cloud supports flexible queries, transactions, aggregations, and cross-database joins, making it easy to interact with your database.
  2. Real-time Capabilities: The platform allows you to make live queries to your database, ensuring that your application remains responsive and up-to-date.
  3. File Storage: With support for scalable file storage solutions like Amazon S3 and Google Cloud Storage, Space Cloud enables seamless file upload and download operations.
  4. Extensibility: The unified APIs provided by Space Cloud can be extended to your custom HTTP services, offering a high degree of flexibility in application development.
  5. Event-driven Architecture: Space Cloud can trigger webhooks or serverless functions based on database or file storage events, facilitating event-driven application designs.
  6. Fine-grained Access Control: The platform integrates with various authentication systems (e.g., Auth0, Firebase Auth) to provide dynamic and secure access control.
  7. Scalability: Written in Golang, Space Cloud follows cloud-native practices and scales horizontally to meet the demands of your application.
  8. Service Mesh Capabilities: Without requiring you to learn the complexities of service meshes, Space Cloud offers all their capabilities out of the box.
  9. Auto-scaling: The platform includes auto-scaling functionality, ensuring that your HTTP workloads can scale down to zero when not in use, optimizing resource utilization.

Supported Databases:

  • MongoDB
  • PostgreSQL (and compatible databases like CockroachDB, Yugabyte)
  • MySQL (and compatible databases like TiDB, MariaDB)
  • SQL Server

Quick Start with Space Cloud

For those new to Space Cloud, following the step-by-step guide is highly recommended to get started. The guide covers everything from installation to basic usage, ensuring a smooth onboarding process.

Installation Guides

Space Cloud can be installed using Docker or Kubernetes. Detailed installation guides for both environments are available to help you set up Space Cloud quickly and efficiently:

Client-side Tooling

Space Cloud exposes both GraphQL and REST APIs, providing flexibility in how you interact with your backend. Here's a quick overview of the client-side tooling available:

GraphQL APIs

GraphQL is the recommended way to use Space Cloud, and it works seamlessly with any GraphQL client. Apollo Client is particularly recommended, but you can explore other clients listed in the awesome-graphql repository.


For those who prefer REST, Space Cloud provides robust REST APIs. The JavaScript SDK makes it easy to consume these APIs in web projects.

How Space Cloud Works

Space Cloud is designed to replace traditional backend code by exposing your database over an external API that can be directly consumed by the frontend. Here's a breakdown of how this works:

  1. API Gateway: Space Cloud acts as an API gateway, allowing clients to fire database queries directly without sending SQL queries. Instead, clients send an object describing the query to be executed.
  2. Validation and Authorization: The object describing the query is first validated by Space Cloud using security rules. Once authorized, Space Cloud dynamically generates and executes the corresponding database query.
  3. Results Delivery: The results of the query are sent directly to the client, streamlining the data retrieval process.

Custom Business Logic

For applications that require more than just CRUD operations, Space Cloud allows you to access custom HTTP servers via the same consistent APIs. This means you can integrate your own business logic seamlessly into the platform. Additionally, Space Cloud supports performing joins on your microservices and database via its GraphQL API.

Integration with Kubernetes and Istio

Space Cloud natively integrates with Kubernetes and Istio, providing a highly scalable serverless platform. This integration brings several advantages:

  • Scalability: Kubernetes ensures that your application can scale horizontally to handle increasing loads.
  • Service Mesh: Istio provides advanced service mesh capabilities, such as traffic management, security, and observability, without requiring additional configuration.

Security and Auto-scaling

Security is a top priority for Space Cloud. The platform encrypts all traffic by default and allows you to define communication policies to protect your microservices. Furthermore, Space Cloud includes auto-scaling functionality, which automatically adjusts the number of running instances based on the current load. This includes the ability to scale down to zero, optimizing resource usage and reducing costs.

Support and Troubleshooting

If you encounter any issues while using Space Cloud, there are several resources available to help you:

  • Documentation: The comprehensive Space Cloud documentation covers all aspects of the platform, from setup to advanced usage.
  • Community Support: Join the Space Cloud community on Discord for support and feedback.
  • Issue Tracking: Report bugs and track issues on the Space Cloud GitHub repository.
  • Follow Updates: Stay updated with the latest developments by following @spaceupcloudio on Twitter.

Contributing to Space Cloud

Space Cloud is an open-source project, and contributions are welcome. Here are some ways you can contribute:

  • Documentation: Help improve the Space Cloud documentation.
  • Sample Apps: Create sample applications in various frontend technologies like React, Angular, and Android.
  • Roadmap: Participate in defining the project's roadmap.
  • Bug Reports: Report any bugs you encounter.
  • Code Contributions: Contribute code for bug fixes and new features.


Space Cloud is licensed under the Apache 2.0 license, ensuring that it remains free and open-source.


Space Cloud represents a significant advancement in the development and deployment of serverless applications. By combining the best features of Firebase and Heroku with the power of Kubernetes, Space Cloud offers a scalable, secure, and flexible platform for modern application development. Whether you're building a simple CRUD application or a complex, event-driven system, Space Cloud provides the tools and capabilities you need to succeed.

Explore the potential of Space Cloud today and transform your development workflow. With its robust feature set, seamless integration with Kubernetes, and strong community support, Space Cloud is poised to become an essential tool for developers worldwide.

For more information, visit the Space Cloud website and start your journey towards efficient and scalable serverless application development.

Additional Resources

Stay Connected

With Space Cloud, the future of serverless application development is here. Embrace

the power of Kubernetes and revolutionize your development process with this cutting-edge platform.

Next Post Previous Post
No Comment
Add Comment
comment url