dehaze

Space Cloud Features

Space Cloud comes with a whole bunch of features to help you build realtime and scalable apps:

Database modulelink

The database module is the core of Space Cloud. It allows you to perform CRUD operations on your database directly from the frontend.

Supported databases ❤ :

  • MongoDB
  • PostgreSQL and PostgreSQL compatible databases (For eg. CockroachDB, Yugabyte etc.)
  • MySQL and MySQL compatible databases (For eg. TiDB)
  • SQL Server

Although the database module of Space Cloud is schemaless, it lets you optionally provide a schema via Mission Control for these added benefits:

  • Data validation before making mutations to the database.
  • Creation/modification of tables in SQL databases.

Space Cloud allows you to perform a wide variety of CRUD operations:

Queryinglink

With Space Cloud, you can query your data in 3 ways:

  • Read directly from a table/collection.
  • Perform joins on multiple tables (across databases).
  • Perform common aggregations on your data like count, min, max, sum, avg.
  • For complex queries, you can execute custom SQL statements as prepared queries.

You can also request data from multiple databases within a single request.

Space Cloud also supports slicing and dicing of the requested data with the following operations:

Mutationslink

Mutations are used to make changes to your data. Following mutations are supported in Space Cloud:

  • Insert multiple records.
  • Update all records or those that match a filter.
  • Upsert i.e. update record(s) if exists or insert.
  • Delete all records or those that match a filter.
  • Transactions multiple mutations in a single transaction.

The following operations are supported in update - set, inc, mul, max, min, currentDate, push, unset and rename.

Realtime subscriptionslink

Subscriptions is used to sync data in realtime. You can subscribe to the data you are interested in, and Space Cloud guarantees to notify you whenever anything changes in that result set.

File Storage Modulelink

With the file storage module your frontend can:

Supported storage mechanisms are:

  • Amazon S3
  • Google Cloud Storage
  • Digital Ocean Spaces
  • Local file storage

GraphQL APIs for Restful Serviceslink

Services are a means to extend Space Cloud using microservices and serverless functions. You can write your microservices in the form of HTTP services that run alongside Space Cloud. These services can be accessed securely via GraphQL or directly.

Notable features of Remote services:

  • Can be triggered from frontend directly or from other remote services.
  • Space Cloud authorizes all calls to remote services via the security rules.
  • Perform joins on remote services and databases via the GraphQL API of Space Cloud.

Eventing Modulelink

Eventing module is used to asynchronously trigger your microservices or serverless functions (e.g., AWS Lambda functions) based on any events in your app.

All event triggers are:

  • Reliable - Each event, triggers a webhook reliably.
  • Trackable - Stored in the database so that you can use them for other purposes.

Authorizationlink

All requests to the database, file storage and remote services go through the authorization layer.

The authorization layer decides whether the request should be allowed or not based on the security rules you have provided in Mission Control and the JWT token present in the request.

Security rules allow you to:

  • Allow/Deny access to requests unconditionally.
  • Grant access only to authenticated requests (ones that have a valid JWT token).
  • Evaluate conditions based on data from databases and incoming requests to grant access.
  • Trigger webhooks to determine whether a request is authorized or not.

Granularity of security ruleslink

  • Database: Operation (create, read, update, delete) level rules for each collection / table (eg: delete operation in posts collection).
  • Remote Services: Endpoint level.
  • File Storage: Operation (create, read, delete) level rules for each path prefix.

Deployments Modulelink

The Deployments Module automatically deploys and scales your docker images on any Kubernetes cluster. It has first-class support of Istio. Hence all your services enjoy the benefit of using a Service Mesh.

In a nutshell, the deployments module lets you:

  • Deploy docker images to Kubernetes
  • Fully encrypt all internal traffic by default for enhanced security.
  • AutoScale HTTP workloads even down to zero!
  • Define service to service communication policy for easy compliance with regulations.

Have a technical question?

Improve the docs!