Bundles provide edge computing functionality by wrapping complex business logic in a resource that is automatically deployed when used in a pipeline.

Objectives

In this tutorial we will create a simple text file containing a message to be referenced inside the Hello Source, and you will learn: 

  • How to create a bundle that wraps a simple file.
  • How to craft your data pipeline using the Bundles resource functionality to reference the file in the bundle.



Creating a Bundle

Bundles can contain any set of files - complex hierarchies can be represented by adding a compressed file that you have previously created out of the directory structure.

You can add as many files as you want to a bundle, that will "wrap" the files in a resource that is to be automatically managed by Datumize. In the resources page, just click on create Bundle.

Add a file hello.txt that contains any message you want.




Use the Bundle in a pipeline

Create a simple pipeline containing a Hello Source and a Logger Sink.

 

We will leverage the bundle we created in the previous step. Click to edit Hello Source, and click on the Message field.

If you type &&{ you will activate the auto complete feature for bundles. The popup dialog that appears will show you the available bundles - select the bundle you created.

With this configuration, you will reference the whole bundle. If you want to reference a specific file inside the bundle, like in this case, type / to expand the list of files contained in the bundle.

The completed field will look like this.




Debug the pipeline

Please check Debugging deployments guide if you need additional information.

You will see the message from the bundle has been inserted into your pipeline.