Saturday, June 28, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Using Temporal Cloud With On-Prem Data

November 17, 2023
in Front-Tech
Reading Time: 2 mins read
0 0
A A
0
Share on FacebookShare on Twitter



Using cloud services is a common practice for backend application architectures. It is important to have control over the data being sent to and from the cloud. Temporal Cloud provides options to ensure secure encryption of data. In this post, we will explore how Temporal Cloud interacts with your infrastructure by default and how you can customize it to prevent any sensitive data from being sent to the cloud.

Understanding Temporal Cloud

To better understand how Temporal Cloud manages data, we have created an image that visualizes the data flow. When Temporal Workers execute a Workflow, the data is sent to the Temporal Cloud and then returned to your server or service upon completion.

Ensuring Security and Encryption

To ensure security and encryption of the data sent to and from the Temporal Cloud, you can define your own DataConverter option for your Temporal Client. Temporal provides a converter library in Go that allows you to create a custom DataConverter. This DataConverter extends a PayloadCodec interface with two methods: Encode and Decode. These methods are responsible for encoding and decoding the data that passes through the Temporal Workers and the Temporal Client.

Creating Your Own DataConverter

When creating your Temporal Client, you have the option to create your own DataConverter. You can define a method called NewEncryptionDataConverter where you define your own Codec to be used in the data conversion process. The Codec struct implements the PayloadCodec interface and uses AES Crypt security.

The Encode method in the Codec struct encodes the data using the specified key and returns a struct following the commonpb.Payload structure. The Decode method decodes the data using the key and returns it in the same protobuf style.

Adding a DataStore to Your DataConverter

In addition to encryption, you can use your DataConverter to store the data in a separate datastore that you host. This can be a MongoDB, SQL DB, Redis, S3, or any other datastore of your choice. The Encode and Decode methods need to be updated to include the datastore dependency.

In the Encode method, you can create a unique ID, insert the record in your datastore using the ID as the primary key, and send the encrypted ID to the Temporal Cloud. In the Decode method, you retrieve the record from the datastore using the decrypted ID and return the data as a commonpb.Payload type.

Conclusion

By customizing your DataConverter, you can add a layer of security to your data and store it in your own datastore instead of sending it to the Temporal Cloud. This allows you to meet regulatory or security requirements that prevent you from sending data outside of your infrastructure. You can find sample code and more information in the GitHub repository provided.



Source link

Tags: clouddataOnPremTemporal
Previous Post

Making sense of the AI hype with Katie King

Next Post

The 5 Best Vector Databases You Must Try in 2024

Related Posts

The essential principles of a good homepage
Front-Tech

The essential principles of a good homepage

June 7, 2024
How to measure and improve user retention
Front-Tech

How to measure and improve user retention

June 6, 2024
Push Animation on Grid Items
Front-Tech

Push Animation on Grid Items

June 5, 2024
How to build a Rails API with rate limiting
Front-Tech

How to build a Rails API with rate limiting

June 4, 2024
Introduction to the B.I.A.S. framework
Front-Tech

Introduction to the B.I.A.S. framework

June 3, 2024
Blue Ridge Ruby is exactly what we need
Front-Tech

Blue Ridge Ruby is exactly what we need

June 3, 2024
Next Post
The 5 Best Vector Databases You Must Try in 2024

The 5 Best Vector Databases You Must Try in 2024

Challenge – SAP Cloud Application Programming Model: Week 2

Challenge - SAP Cloud Application Programming Model: Week 2

Shekel resumes strong gains – Globes

Shekel resumes strong gains - Globes

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
How ‘Chain of Thought’ Makes Transformers Smarter

How ‘Chain of Thought’ Makes Transformers Smarter

May 13, 2024
Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

October 2, 2023
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

October 30, 2023
How To Build A Quiz App With JavaScript for Beginners

How To Build A Quiz App With JavaScript for Beginners

February 22, 2024
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In