AI / Apache Burr Interview questions
What are app_id and partition_key used for in Burr?
Burr applications are keyed on two identifiers used by the persistence and tracking layers:
| Identifier | Purpose |
app_id | Uniquely identifies a single application run. A UUID is generated automatically if you don’t supply one. |
partition_key | Groups related applications together, e.g. a user’s ID or email in a chatbot. Can be left None if not needed. |
Both are set together via with_identifiers(app_id=..., partition_key=...) on the ApplicationBuilder, and can be read inside a running action by requesting the ApplicationContext via the special __context parameter.
More Related questions...