Unverified Commit 5ddb181c authored by Ryan McCormick's avatar Ryan McCormick Committed by GitHub
Browse files

docs: Custom Backend/Worker Guide (#608)

parent de77d3f9
...@@ -90,7 +90,9 @@ Dynamo follows a class-based architecture similar to BentoML making it intuitive ...@@ -90,7 +90,9 @@ Dynamo follows a class-based architecture similar to BentoML making it intuitive
1. Class attributes for dependencies using `depends()` 1. Class attributes for dependencies using `depends()`
2. An `__init__` method for standard initialization 2. An `__init__` method for standard initialization
3. Optional lifecycle hooks like `@async_on_start` and `@async_on_shutdown` 3. Optional lifecycle hooks like `@async_on_start` and `@async_on_shutdown`
4. Endpoints defined with `@dynamo_endpoint()` 4. Endpoints defined with `@dynamo_endpoint()`. Optionally, an endpoint can be given a name
via `@dynamo_endpoint("my_endpoint_name")`, but otherwise will default to the name of the
function being decorated if omitted.
This approach provides a clean separation of concerns and makes the service structure easy to understand. This approach provides a clean separation of concerns and makes the service structure easy to understand.
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment