Skip to content

Conversation

@leandrodamascena
Copy link
Contributor

closes #175

Description of changes:

This PR adds docs/best-practices.md documentation for best practices when working with durable functions. The guide covers function design principles, timeout configuration recommendations, naming conventions for operations, performance optimization tips, common mistakes to avoid, and code organization patterns.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@leandrodamascena leandrodamascena self-assigned this Nov 14, 2025
def lambda_handler(event: dict, context: DurableContext) -> dict:
# Sequential execution - each step waits for the previous one
user_data = context.step(fetch_user_data(event["user_id"]))
order_history = context.step(fetch_order_history(event["user_id"]))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessarily an avoid per se, but if business logic allows it parallel could be a end-to-end processing time improvement

@yaythomas yaythomas merged commit df14144 into main Dec 8, 2025
9 checks passed
@yaythomas yaythomas deleted the docs_sdk/15-best-practices-test branch December 8, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: add documentation about best practices

2 participants