Skip to main content

One post tagged with "promises"

View All Tags

How to write Compound Promises

· 19 min read
Derik Evangelista
Engineer @ Syntasso

So you read the guide on Compound Promises and tried out the Workshop, and decided that a compound promise is the right abstraction to expose in your platform. You are about to start writing it, but you are still wondering how you would really go about writing one.

We hear you.

In this blog post, we will build a Compound Promise from scratch. Consider this the ultimate guide on how to build compound promises effectively.

You can follow this guide and build the Promise along with us, or you can use it as a reference when building your own Compound Promises. The Promise we will build is available here.

After reading this post you will:

  • Learn about some basic Kratix concepts
  • Learn how to write a Compound Promise
    • By transforming an user's request into a series of sub-requests
    • By sending those sub-requests to the Platform cluster (and why you need it)
    • By defining the sub-Promises that the parent Promise depends on

Click on "read more" to continue!