Skip to main content

3 posts tagged with "promises"

View All Tags

Best practices for Promise-writing

· 14 min read
Sapphire Mason-Brown
Engineer @ Syntasso

As platforms are so unique to organisations, and the services required by platform users are so vast, Kratix has always been very flexible when it comes to the design of Promises. Other than the expectation that Promise writers honour the Promise schema, the scope for how Promises can be designed is vast; containers can be written in any language, workflows can be as segmented as you would like and workflow actions can be imperative or declarative.

However, there are a number design practices and approaches to Promise development that can make development and maintenance easier for Promise developers and make consuming services via Promises better for users.

In this blog post, we're going design a Promise with some core fundamentals in mind, paving the way for improved debugging, reliability and user clarity.


Speeding up local dev: fast feedback when building pipelines

· 11 min read
Aslan Avci
Engineer @ Syntasso
Derik Evangelista
Engineer @ Syntasso

Are you building Pipelines and unsure about the best way to test and iterate over them? Worry not. Your questions are about to be answered!

In this blog post, you will gain insights into how you can get faster feedback on your Pipeline development by:

  • Running the pipeline stage locally
  • Running automated tests
  • Testing imperative actions
  • Running the stage as a container

We will also look into how to more effectively run system-level tests by

  • Populating the image cache
  • Setting the image pull policy
  • Automating end-to-end (e2e) tests

Click "read more" below to continue!


How to write Compound Promises

· 20 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!