<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by BigHire.io on Medium]]></title>
        <description><![CDATA[Stories by BigHire.io on Medium]]></description>
        <link>https://medium.com/@bighireio?source=rss-3d07e09c1b1c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*28tjKXHwn5Bbj161j61DzA.jpeg</url>
            <title>Stories by BigHire.io on Medium</title>
            <link>https://medium.com/@bighireio?source=rss-3d07e09c1b1c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:50:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bighireio/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[DBOS-Cloud: Minimal Effort Change Data Capture (CDC) tool]]></title>
            <link>https://medium.com/@bighireio/dbos-cloud-minimal-effort-change-data-capture-cdc-tool-39fb7b59b6a3?source=rss-3d07e09c1b1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/39fb7b59b6a3</guid>
            <category><![CDATA[supabase]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[dbos]]></category>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[it-workflows]]></category>
            <dc:creator><![CDATA[BigHire.io]]></dc:creator>
            <pubDate>Thu, 22 Aug 2024 23:34:13 GMT</pubDate>
            <atom:updated>2024-08-22T23:34:13.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*wdEAlowZ9ZonsImZBF-cVw.png" /></figure><p><a href="https://dev.to/t/dbos">#dbos</a> <a href="https://dev.to/t/workflows">#workflows</a> <a href="https://dev.to/t/postgres">#postgres</a> <a href="https://dev.to/t/orchestration">#orchestration</a></p><p>This is a simple [DBOS](<a href="https://docs.dbos.dev/">https://docs.dbos.dev/</a>) example focusing on remote deployment to [DBOS Cloud](<a href="https://www.dbos.dev/dbos-cloud">https://www.dbos.dev/dbos-cloud</a>), their hosted solution with a generous free tier for devs.</p><p>The [github repo](<a href="https://github.com/weisisheng/supabase-cdc-to-dbos-public">https://github.com/weisisheng/supabase-cdc-to-dbos-public</a>) sets up: 1) a workflow with an http api endpoint that receives events from Supabase when an INSERT is made to a table, 2) the same workflow archives the event payload to a DBOS hosted Postgres table, and 3) additional endpoints as utilities to view and delete all events while in development.</p><p>Prerequisites:</p><p>1. Make sure you have node.js 21.x</p><p>2. Sign up for DBOS Cloud (<a href="https://www.dbos.dev/dbos-cloud">https://www.dbos.dev/dbos-cloud</a>)</p><p>3. Have a Supabase account and a table you are inserting in to.</p><p>Getting Started:</p><p>1. Clone the repository and navigate to the project directory</p><p>2. Install the dependencies</p><p>***_Be sure not to commit / hard code your secrets to a public repo! This setup is meant for local development and direct deployment to the dbos-cloud service._***</p><p>3. To deploy to DBOS-cloud, login with this, “**_npx dbos-cloud login_**” and follow the instructions to match the uuid given in the console to the one in the browser, then standard login user/password applies.</p><p>4. Next provision a d’base instance: “**_npx dbos-cloud db provision database-instance-name -U database-username_**”</p><p>5. Register your app with the d’base instance: “**_npx dbos-cloud app register -d database-instance-name_**”</p><p>6. To use secrets in DBOS, add your variables in the cli like this:</p><p>- export PGPASSWORD=put-the-password-you-created-when-you-setup-the-remote-database-here</p><p>These will be picked up at build time and inserted into the dbos-config.yaml fields: ${PGPASSWORD}.</p><p>You will notice on line #56 of operations.ts, there is a <a href="http://twitter.com/PostApi">@PostApi</a> decorator which sets up a url with a randomly generated endpoint. This will be the receiver of events from Supabase. I created the randomly generated endpoint to protect the api (sometimes called protection by obfuscation).</p><p>***Note: this is not a recommended method! It was done as a quick and dirty dev hack. For real production use, you will want to use DBOS’ [authentication / authorization features](<a href="https://docs.dbos.dev/tutorials/authentication-authorization">https://docs.dbos.dev/tutorials/authentication-authorization</a>.) ***</p><p>Take the base url that DBOS returned when the deploy finished and add the randomly generated endpoint you create (instructions are in the code).</p><p>It should look something like this: <a href="https://foo-bar-dbos.cloud.dbos.dev/OBstAqG6qOv7cWXCqgg">https://foo-bar-dbos.cloud.dbos.dev/OBstAqG6qOv7cWXCqgg</a>. You’ll use this in the next step.</p><p>The Supabase settings:</p><p>On the Supabase side, set up the trigger to publish changes externally by: 1) choosing the project you want to use, then on the left hand side menu go to “Database” → “Webhooks”. 2) create a new webhook, give it a name, choose the table to watch, and the events (in our case insert, but update, and delete are also available). Make sure the http request method is set to POST, then enter the URL created by DBOS-Cloud plus the randomly generated stub. Hit “Create Webhook”.</p><p>Staying in the Supabase console, go to the “Table Editor”, choose your table, and add a new row with the required inputs.</p><p>Almost immediately, you should be able to query in Insomnia / Postman or curl given your specific DBOS supplied url, <a href="https://foo-bar-dbos.cloud.dbos.dev/getEventData">https://foo-bar-dbos.cloud.dbos.dev/getEventData</a>, and see the event.</p><p>For reference, here is the format of a sample event body sent to DBOS-Cloud:</p><p>```<br>{</p><p>“type”: “INSERT”,</p><p>“table”: “fooData”,</p><p>“record”: {</p><p>“id”: “tempId-e71m1dtxan6b5c0dqxkbhoez”,</p><p>“email”: “<a href="/service/mailto:joe@company.com">joe@company.com</a>”,</p><p>“lastName”: “Blow”,</p><p>“firstName”: “Joe”,</p><p>“created_at”: “2024–07–25T06:03:10.792595+00:00”,</p><p>“updated_at”: “2024–07–25T06:03:10.792595”</p><p>},</p><p>“schema”: “public”,</p><p>“old_record”: null</p><p>}<br>```</p><p>Record fields will vary based on how your table is structured. For simplicity purposes, in this example, I archive the JSON object in total vs. parsing the records further.</p><p>Reference Docs (From Official Repo):</p><ul><li>To add more functionality to this application, modify `src/operations.ts`, then rebuild and redeploy it.<br>- For a detailed tutorial, check out our [programming quickstart](<a href="https://docs.dbos.dev/getting-started/quickstart-programming">https://docs.dbos.dev/getting-started/quickstart-programming</a>).<br>- To learn how to deploy your application to DBOS Cloud, visit our [cloud quickstart](<a href="https://docs.dbos.dev/getting-started/quickstart-cloud/">https://docs.dbos.dev/getting-started/quickstart-cloud/</a>)<br>- To learn more about DBOS, take a look at [our documentation](<a href="https://docs.dbos.dev/">https://docs.dbos.dev/</a>) or our [source code](<a href="https://github.com/dbos-inc/dbos-transact">https://github.com/dbos-inc/dbos-transact</a>).</li></ul><p>Resources to learn more:</p><p>(Awesome-dbos)[<a href="https://github.com/dbos-inc/awesome-dbos">https://github.com/dbos-inc/awesome-dbos</a>]</p><p>The first [article](<a href="https://dev.to/vince_hirefunnel_co/dbos-cloud-simple-and-robust-workflow-orchestration-cn4">https://dev.to/vince_hirefunnel_co/dbos-cloud-simple-and-robust-workflow-orchestration-cn4</a>) in this series uses cron and [Postmark](<a href="https://postmarkapp.com/">https://postmarkapp.com/</a>) email service provider.</p><p>The second [article](<a href="https://dev.to/vince_hirefunnel_co/dbos-cloud-fast-and-free-automatic-data-aggregator-2gdd">https://dev.to/vince_hirefunnel_co/dbos-cloud-fast-and-free-automatic-data-aggregator-2gdd</a>) in this series aggregates and archives data from (Supabase)[<a href="http://www.supabase.com/">www.supabase.com</a>] tables.</p><p>This article was originally posted [here](<a href="https://dev.to/vince_hirefunnel_co/dbos-cloud-minimal-effort-change-data-capture-cdc-tool-4c0d">https://dev.to/vince_hirefunnel_co/dbos-cloud-minimal-effort-change-data-capture-cdc-tool-4c0d</a>).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39fb7b59b6a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBOS-Cloud: Fast and Free Automatic Data Aggregator]]></title>
            <link>https://medium.com/@bighireio/dbos-cloud-fast-and-free-automatic-data-aggregator-c4dfe45195c4?source=rss-3d07e09c1b1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4dfe45195c4</guid>
            <category><![CDATA[supabase]]></category>
            <category><![CDATA[dbos]]></category>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[aws-step-functions]]></category>
            <dc:creator><![CDATA[BigHire.io]]></dc:creator>
            <pubDate>Sun, 18 Aug 2024 01:58:20 GMT</pubDate>
            <atom:updated>2024-08-18T01:59:40.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*gWmQpg_WAg775LJYn8BgbQ.png" /><figcaption>men working in factory, generated by openai</figcaption></figure><p>This is a simple [DBOS](<a href="https://docs.dbos.dev/">https://docs.dbos.dev/</a>) app example focusing on remote deployment to [DBOS Cloud](<a href="https://www.dbos.dev/dbos-cloud">https://www.dbos.dev/dbos-cloud</a>), their hosted solution with a generous free tier for devs.</p><p>The [github repo](<a href="https://github.com/weisisheng/aggdata-supabase-public">https://github.com/weisisheng/aggdata-supabase-public</a>) sets up a cron job which: 1) performs a “SELECT COUNT” on a Supabase Postgres database table and 2) an “INSERT” to a second table. Consider it a starter for a poor man’s data lake aggregating data in the receiving table.</p><p>***Note: This is not the fastest, most compact and recommended way to create this workflow. DBOS-Cloud has terrific in-app full Postgres database functionality. Check out the [transactions](<a href="https://docs.dbos.dev/tutorials/transaction-tutorial">https://docs.dbos.dev/tutorials/transaction-tutorial</a>) section for more. I built the script this way since I had pre-existing data stored on [Supabase](<a href="https://supabase.com/).***">https://supabase.com/).***</a></p><p>Prerequisites</p><p>+ Make sure you have Node.js 21.x</p><p>+ Sign up for DBOS Cloud (<a href="https://www.dbos.dev/dbos-cloud">https://www.dbos.dev/dbos-cloud</a>)</p><p>+ Have a Supabase account and get your project url (<a href="https://foobar.supabase.co/rest/v1">https://foobar.supabase.co/rest/v1</a>) and project API anon key. Check out the Supabase [docs](<a href="https://supabase.com/docs/guides/api/creating-routes#api-url-and-keys">https://supabase.com/docs/guides/api/creating-routes#api-url-and-keys</a>) to get them.</p><p>+ Make sure to have two tables set up, the first can have any data in it as we will be counting rows, and the second table should have the columns “id”, “count”, and “created_at”.</p><p>Getting Started</p><p>Clone this repository and navigate to the project directory</p><p>+ Install the dependencies</p><p>+ To deploy to DBOS-cloud, login with this, “**_npx dbos-cloud login_**” and follow the instructions to match the uuid given in the console to the one in the browser, then standard login user/password applies.</p><p>+ Next provision a d’base instance: “**_npx dbos-cloud db provision database-instance-name -U database-username_**”</p><p>+ Register your app with the d’base instance: “**_npx dbos-cloud app register -d database-instance-name_**”</p><p>Secrets Handling</p><p>To use secrets in DBOS, add your variables in the cli like this:</p><p>+ export PGPASSWORD=password-when-you-setup-the-remote-database-here</p><p>+ export SUPABASE_URL=<a href="https://foobar.supabase.co/">https://foobar.supabase.co</a></p><p>+ export SUPABASE_ANON_KEY=long-foo-bar-key</p><p>+ export SOURCE_TABLE=source-table-name</p><p>+ export DESTINATION_TABLE=destination-table-name</p><p>These will be picked up at build time and inserted into the dbos-config.yaml fields: ${PGPASSWORD}, ${SUPABASE_URL}, ${SUPABASE_ANON_KEY}, ${SOURCE_TABLE}, ${DESTINATION_TABLE} respectively. Don’t use quotation marks wrapping the values. The PGPASSWORD is for the basic user (not admin) Postgres service, which won’t be used here.</p><p>***Be sure not to commit / hard code your secrets to a public repo! This setup is locally developed and directly deployed to the dbos-cloud service.***</p><p>Get ready to deploy!</p><p>+ And finally deploy your app: “**_npx dbos-cloud app deploy_**”</p><p>After 5 minutes, assuming you have data in your source table, check your destination table for entries.</p><p>+ If you are not getting expected results:</p><p>Login to the monitoring [dashboard](<a href="https://docs.dbos.dev/cloud-tutorials/monitoring-dashboard">https://docs.dbos.dev/cloud-tutorials/monitoring-dashboard</a>) using this “**_npx dbos-cloud dashboard url_**”and check the collection of logs.</p><p>+ To delete the app online,`npx dbos-cloud app delete [application-name] — dropdb`. Remove the ‘ — dropdb’ parameter if you want to retain the database table. If you don’t delete it, the cron script will continue to run.</p><p>There are so many more benefits to mention re: workflow orchestration, observability, debugging, monitoring and overall speed, security, and costs which can be explored further here: <a href="https://docs.dbos.dev/">https://docs.dbos.dev/</a></p><p>Reference Docs (From Official Repo)</p><p>- To add more functionality to this application, modify `src/operations.ts`, then rebuild and redeploy it.<br>- For a detailed tutorial, check out our [programming quickstart](<a href="https://docs.dbos.dev/getting-started/quickstart-programming">https://docs.dbos.dev/getting-started/quickstart-programming</a>).<br>- To learn how to deploy your application to DBOS Cloud, visit our [cloud quickstart](<a href="https://docs.dbos.dev/getting-started/quickstart-cloud/">https://docs.dbos.dev/getting-started/quickstart-cloud/</a>)<br>- To learn more about DBOS, take a look at [our documentation](<a href="https://docs.dbos.dev/">https://docs.dbos.dev/</a>) or our [source code](<a href="https://github.com/dbos-inc/dbos-transact">https://github.com/dbos-inc/dbos-transact</a>).</p><p>Resources to learn more —</p><p>[Awesome-dbos](<a href="https://github.com/dbos-inc/awesome-dbos">https://github.com/dbos-inc/awesome-dbos</a>)</p><p>The first [article](<a href="https://dev.to/vince_hirefunnel_co/dbos-cloud-simple-and-robust-workflow-orchestration-cn4">https://dev.to/vince_hirefunnel_co/dbos-cloud-simple-and-robust-workflow-orchestration-cn4</a>) in this series using cron and [Postmark](<a href="https://postmarkapp.com/">https://postmarkapp.com/</a>) email service provider.</p><ul><li>This [post](<a href="https://dev.to/vince_hirefunnel_co/dbos-cloud-fast-and-free-automatic-data-aggregator-2gdd">https://dev.to/vince_hirefunnel_co/dbos-cloud-fast-and-free-automatic-data-aggregator-2gdd</a>) was originally published to dev.to on July 20th.</li></ul><h3>#dbos #workflows #postgres #orchestration #supabase</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4dfe45195c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBOS-Cloud: Simple and Robust Workflow Orchestration]]></title>
            <link>https://medium.com/@bighireio/dbos-cloud-simple-and-robust-workflow-orchestration-a9374b2d8d66?source=rss-3d07e09c1b1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9374b2d8d66</guid>
            <category><![CDATA[step-functions-workflows]]></category>
            <category><![CDATA[dbos-cloud]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[workflow-automation]]></category>
            <dc:creator><![CDATA[BigHire.io]]></dc:creator>
            <pubDate>Sun, 11 Aug 2024 00:53:57 GMT</pubDate>
            <atom:updated>2024-08-11T00:53:57.979Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*McjX8fbW08Gazu5Lfp7dlQ.png" /><figcaption>men working in a factory, generated by openai</figcaption></figure><p>#dbos, #workflows, #postgres, #orchestration</p><p>This is a toy <a href="https://docs.dbos.dev/">DBOS</a> app example focusing on remote deployment to <a href="https://www.dbos.dev/dbos-cloud">DBOS Cloud</a>, their hosted solution with a generous free tier for devs.</p><p>The <a href="https://github.com/weisisheng/dbos-httpapi-postmark-v202407/tree/master">github repo</a> sets up two simple HTTP API endpoints that: 1) sends an email using Postmark ESP when you hit /sendemail/:friend/:content endpoint and 2) inserts a record into a postgres d&#39;base instance and retrieves the records when you visit the /emails endpoint.</p><h3>Prerequisites</h3><ol><li>Make sure you have Node.js 21.x</li><li>Sign up for DBOS Cloud (<a href="https://www.dbos.dev/dbos-cloud">https://www.dbos.dev/dbos-cloud</a>)</li><li>Have a Postmark account, username / password from the server (<a href="https://postmarkapp.com/">https://postmarkapp.com/</a>), and a specific sending email address setup</li></ol><p>***Since this uses nodemailer, you can easily swap out Postmark for your email service provider of choice.</p><h3>Getting Started</h3><ol><li>Clone this repository and navigate to the project directory</li><li>Install the dependencies</li></ol><p><strong><em>&gt; Be sure not to commit / hard code your secrets to a public repo! This setup is meant for local development and direct deployment to the dbos-cloud service.</em></strong></p><ol><li>To deploy to DBOS-cloud, login with this, “<strong><em>npx dbos-cloud login</em></strong>” and follow the instructions to match the uuid given in the console to the one in the browser, then standard login user/password applies.</li><li>Next provision a d’base instance: “<strong><em>npx dbos-cloud db provision database-instance-name -U database-username</em></strong>”</li><li>Register your app with the d’base instance: “<strong><em>npx dbos-cloud app register -d database-instance-name</em></strong>”</li><li>To use secrets in DBOS, add your variables in the cli like this:</li></ol><ul><li>export POSTMARK_USER=api-key-from-postmark-server-here</li><li>export POSTMARK_PASSWORD=api-key-from-postmark-server-here</li><li>export PGPASSWORD=put-the-password-you-created-when-you-setup-the-remote-database-here</li><li>export <a href="/service/mailto:SENDER_EMAIL=sender@foobar.com">SENDER_EMAIL=sender@foobar.com</a></li><li>export <a href="/service/mailto:RECIPIENT_EMAIL=receiver@foobar.com">RECIPIENT_EMAIL=receiver@foobar.com</a></li></ul><p>&gt; These will be picked up at build time and inserted into the dbos-config.yaml fields: ${PGPASSWORD}, ${POSTMARK_USER}, ${POSTMARK_PASSWORD}, ${SENDER_EMAIL}, ${RECIPIENT_EMAIL} respectively.</p><h3>Deploy Time</h3><ol><li>And finally deploy your app: “<strong><em>npx dbos-cloud app deploy</em></strong>”</li></ol><p>&gt; After a minute or two, you’ll get back an api endpoint that looks like: https://&lt;username&gt;-&lt;app-name&gt;.<a href="http://cloud.dbos.dev/">cloud.dbos.dev/</a>.</p><p>Visit https://&lt;username&gt;-&lt;app-name&gt;.<a href="http://cloud.dbos.dev/sendemail/friend/content">cloud.dbos.dev/sendemail/friend/content</a> replacing &#39;friend&#39; and &#39;content&#39; with your own choices. Hitting this sends an email using Postmark and inserts a record into the d&#39;base named &#39;postmark&#39;.</p><p>Then visit https://&lt;username&gt;-&lt;app-name&gt;.<a href="http://cloud.dbos.dev/emails">cloud.dbos.dev/emails</a> to retrieve the records from the d&#39;base.</p><p>To delete the app online,npx dbos-cloud app delete [application-name] --dropdb. Remove the &#39;--dropdb&#39; parameter if you want to retain the database table.</p><h3>Some caveats:</h3><ul><li><strong>The endpoint is not secure</strong>, and anyone can send an email if they guess the assigned endpoint. You should add some sort of authentication to the endpoint to prevent abuse.</li></ul><p>Here are some instructions for that: <a href="https://docs.dbos.dev/tutorials/authentication-authorization">https://docs.dbos.dev/tutorials/authentication-authorization</a></p><ul><li>When building workflows with DBOS, consider creating the respective standalone functions, then wrapping them in an Httpapi decorator / function, then wrap all that in a @workflow which will add a bunch of cool built-in features.</li></ul><p>— granular observability — guaranteed only once execution — asynchronous execution — precise management and observability of workflows</p><p>There are so many more benefits to mention re: debugging, monitoring and overall speed, security, and costs which can be explored further here: <a href="https://docs.dbos.dev/">https://docs.dbos.dev/</a></p><h3>Reference Docs (From Official Repo)</h3><ul><li>To add more functionality to this application, modify src/operations.ts, then rebuild and redeploy it.</li><li>For a detailed tutorial, check out our <a href="https://docs.dbos.dev/getting-started/quickstart-programming">programming quickstart</a>.</li><li>To learn how to deploy your application to DBOS Cloud, visit our <a href="https://docs.dbos.dev/getting-started/quickstart-cloud/">cloud quickstart</a></li><li>To learn more about DBOS, take a look at <a href="https://docs.dbos.dev/">our documentation</a> or our <a href="https://github.com/dbos-inc/dbos-transact">source code</a>.</li></ul><p>This post was originally created on [dev.to](<a href="https://dev.to/vince_hirefunnel_co/dbos-cloud-simple-and-robust-workflow-orchestration-cn4">https://dev.to/vince_hirefunnel_co/dbos-cloud-simple-and-robust-workflow-orchestration-cn4</a>).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9374b2d8d66" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>