Comments (4)
thanks for the note Sebastian!
guidelines how to handle dependencies (like services, database access layers, etc.) in Go based workflows/activities.
- i'm not sure i understand why you want Temporal to give you guidance on these things. The point of having idiomatic language SDKs is that it'd plug right in to your normal development workflow?
I struggled with getting the correct workflow name in workflow instances
- i'm interested in hearing more as that is something we can probably help with. An example would be nice!
3 ideas for how to do this:
- book a call with me: https://savvycal.com/swyx/quick
- record async video describing your situation (Loom helps) and email it to us [email protected]
- write a minimal example repro to demonstrate the problem and ask how we'd solve it?
from documentation.
hey Sebastian gonna close this for now, please feel free to reopen if you'd like to follow up on this!
from documentation.
Hey swyx,
didn't expect to see you here as I know you from the React/Svelte community :D
Let's take the ecommerce example to make it more clear: https://docs.temporal.io/blog/build-an-ecommerce-app-with-temporal-part-2-reminder-emails#sending-emails-from-an-activity
In this activity, the dependencies (like the mailing service) are tightened to the activity function. But I would like to pass the depedencies via the function params to be able to write good tests for it. From my understanding, these params must be serializable and always flow through the workspace code.
Can you show me how it's supposed to work in this situations? I have the same question for workspaces (which could also have deps that arent serializable).
from documentation.
@SebastianM
You can pass these types of dependencies to your activities when you register them with the worker, don't have to hard-code them in your activities as done in that example.
Another thing the Temporal testing framework provides is mocking of activities, which would allow you not to use the "real/prod" services that your activities may interact with, during unit/integration testing.
Feel free to ask any questions you might have on our community forum - https://community.temporal.io :)
from documentation.
Related Issues (20)
- [ Documentation request ][Minor] The text on the temporal-cron-job.svg has a double image HOT 2
- Workflow reuse policy docs confusing
- [ Bug report ] Python tutorial has a couple of errors HOT 1
- [ Documentation request ] Update Search Attribute limits
- [ Documentation request ] Automated install instructions for Windows using Scoop HOT 1
- [ Documentation request ] Clarify upgrade procedure
- [ Documentation request ] Wrong link HOT 2
- [ Bug report ] HOT 1
- [ Documentation request ] Grafana datasource CA certificate
- [ Bug report ] Broken link to 'Java file processing example' in Task Routing doc HOT 1
- [ Documentation request ] Minimum Retention Period HOT 1
- [ Bug report ] Links to java examples in Golang introduction dev-guide HOT 1
- core-2.4.3.tgz: 1 vulnerabilities (highest severity is: 5.3)
- [ Documentation request ] please add to doc that activities are not re-executed (during replay) after their completion is recorded in even history HOT 2
- [ TypeScript Documentation Bug report ] Broken Link on Website HOT 1
- Instructions for adding new search attributes is confusing
- [docs.temporal.io] A link in the CLI docs does not point to current release HOT 1
- go.temporal.io/sdk-v1.21.1: 1 vulnerabilities (highest severity is: 7.5)
- go.temporal.io/sdk-v1.22.2: 1 vulnerabilities (highest severity is: 7.5)
- go.temporal.io/sdk-v1.24.0: 1 vulnerabilities (highest severity is: 7.5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documentation.