4 ms·
Real world CRUD is a bit different though, you want to send the log to somewhere else, use Sentry to try catch error in your CRUD endpoint. Or publishing a mess
by revskill 5y ago
Real world CRUD is a bit different though, you want to send the log to somewhere else, use Sentry to try catch error in your CRUD endpoint. Or publishing a message to Kafka after u created an object. How to integrate "real world components" into this ?
- eatonphil 5y agoThe primary use case I had in mind for this was internal business apps. But a few ways you could hook without any code changes in dbcore: use LISTEN/NOTIFY or equivalent to hook on changes, poll for changes in the DB, "eject" the generated code and edit API handlers directly to call where you want, or just edit the default templates directly with whatever API handlers you want to call. It's true there's not a great way to add hooks at a configuration level at the moment. But there are still many ways you could work around that.
- manojlds 5y agoLot of these internal business apps have a attached workflow to CRUD (reviews, approval etc) Any thoughts around workflows?
- rapnie 5y agoNot really in line with this particular CRUD subject, but combine-able esp. if things grow in size and scale: https://temporal.io https://temporal.io provides a really nice way to code your workflows in Golang, applicable for small-scale, while hiding most complexity that come with scaling.
- swyx 5y agoaye, i work at Temporal, happy to answer any qtns!