What is a Microstack?
In its simplest terms - a Microstack is a one-click template that is used to deploy an individual microservice in an encapsulated, organized and scalable manner.
Microstacks will wrap one-or-many types of resources into a single template. The following types of resources relevant to microservice architecture are available:
- Data tables
- APIs
- Cloud functions
- Schemas
- File bucket – coming soon
Here's a visual reference of an existing Microstack before being deployed. In this case, the Microstack is an app authentication infrastructure using JWTs.
tip
You can expand the What's in this Microstack dropbox to see an overview of its contents.
From the database to the API endpoints, everything in the Microstack is launched like-new to your currently selected workspace.
Launch
The launch process for a Microstack is incredibly simple.
From that same preview, proceed through the right-hand stepper. By default, your account will come with a workspace called My Workspace 1.
tip
Workspaces are isolated resources environments - like folders for you to maximize organization. It follows that Easybase utilizes a database-per-service pattern, meaning every workspace has a scoped database that is enclosed to that workspace's resources.
Upon successful deployment, you're Microstack will show a series of green checkmarks. Its contents will populate the Functions tab, Tables tab, etc.
Heading to the Functions tab will show three new resources, Tables will show one new resource.
For a high-level overview of the deployed Microstack, Schemas will display the generated public URLs along with the schema of each route in your workspace.
tip
After you deploy a Microstack, all the resources can be edited and extended to your specific use case. This is not always necessary but is often important for custom functionality.