Approaches for consuming 'Electro tables' from other languages #294
PeterBaker0
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am really enjoying the developer experience for ElectroDB within typescript. Nice typing, clear crud operations, useful abstractions over single table concepts while providing sufficient control. However I'd like to discuss ideas for increasing interoperability when accessing ElectroDB designed tables from other programming languages.
I have found that there is a pressure point due to this loss of transparency (to some extent) into how to query the table (without ElectroDB translating).
Example use case - I was working on a project which used DynamoDB to index some documents/urls etc for indexing into a ChatGPT style document QA service. To access this data from Python, I either need to:
a) recreate the queries for specific access patterns manually based on how ElectroDB sets up the pk/sk's, or
b) proxy the access through a typescript API
Both options are a little difficult/non-ideal.
a) scares me because we are managing the mapping from software defined ElectroDB schema into dynamo query in two places now (once in ElectroDB, once in the python code) - migrations, updates, fixes etc become difficult here + no typing to help etc.
b) is more ergonomic but less performant and adds additional complexity (i.e. maybe we need to think about inter-service authentication in a way we didn't need to previously for simple applications)
Do others have ideas on better approaches? This could be thinking short or long term.
I have some ideas
What do others think? Or maybe there's other ways of thinking about this problem?
Beta Was this translation helpful? Give feedback.
All reactions