eyadgaran / SimpleML

Machine learning that just works, for effortless production applications
BSD 3-Clause "New" or "Revised" License
17 stars 5 forks source link

Support centralized metadata server #116

Open eyadgaran opened 1 year ago

eyadgaran commented 1 year ago

currently db.initialize binds sqlalchemy objects in the session. leveraging #105 would split that into a standalone python package (can mix/match versions for orm vs core and library extensions) but fundamentally it still requires an in session reference.

updating the communication medium from persistable.orm_cls.save/etc to a standalone method that knows how to read env/config values to configure the payload and an over the wire call to the listening metadata server. tbd rest vs grpc

db.initialize can still be called in the same script but it implicitly starts a background server and updates the connection config to point at the corresponding localhost