-
Notifications
You must be signed in to change notification settings - Fork 2
Description
- I would consider naming your web_connectors as such for naming consistency. Not a huge deal but for readability i have a good idea of where i am when im navigating the directories of the project.
- Broader design question: You aren't. going for stateful connections on this connector library. Cool ,but are there situations or usecases where statefulness you get with a class will be missed? Like are there situations where you may want a Session and not just a one off request? Depends on the API I guess?
*. If I use your library in Airflow, or in Temporal, so think high-throughput microservice making many calls, batch jobs making 1000s of lookups, does this introduce a problem? (IDK) Think bulk or batch lookups
Every function call repeats environment variable parsing and validation. I dont think this is going to kill you, but it is a design feature based on this build out.
Running in the same theme, the creation (for example in Twilio) of the HTTPBasicAuth object happens with every call of the function. Again, it's cheap, but if I'm implementing connectors in a microservice does this have an impact? (IDK)
- imlications with running many function calls in a loop?
I wonder if there is a class based design we could discuss or work through that could help solve some of what you are attempting to do with Broker while also consolidating some of what you are doingin your functions in your API/DBMS specificc modules.
I think this project is a great start. I'm happy to spend some days next week ideating on how we can continue to build on this excellent foundation you have laid out.