FraznoFire
Explore posts from serversNaming factories “class”factory always a good idea?
It is purely to create objects that implement that interface, but I thought it might give more of a clue as to its purpose by saying it’s specifically to resolve/identify the specific implementation required for a given device, not a general purpose way to implement IVendorThing
10 replies
Return Value on Entity Modification
Come to think of it, would it be better to write the property modification code into the “get/set” methods of the property? Or at least in the class itself? That way nothing in the code base can incorrectly modify the values outside of business logic?
7 replies
Best practice for Database EF Migrations (Auto v Manual)
aah but now I'm worried about using bundles, the Microsoft documentation mentions that the sql script means you can visually inspect what it will do so there's (hopefully) no unexpected surprises. Not sure if it is possible to get that level of transparency from the bundle
27 replies
Best practice for Database EF Migrations (Auto v Manual)
In Aus, medical apps in particular are very behind the times. Of the ~4/5 prevalent ones we deal with they were pretty much all written 20 years ago with no real changes since.
They work "fine" from a user standpoint, but when we have to update them.. it's a 2-3 hour manual process.
27 replies
Best practice for Database EF Migrations (Auto v Manual)
Ok, I've decided I will go ahead with using bundles to export the actual migration to a binary, and to apply it in production in my docker compose, I will have it setup as a service and tell my api to wait for
service completed successfully
using depends on
in docker compose.
Was looking for something similar in Kubernetes, ie can I make a container that starts and finished before my actual app, and turns out, I can. They're called init containers.
So in short I will have my CI/CD push out a migration bundle whenever new migrations are made (should be quite rare), and have my docker/kubernetes run a single instance of this before starting any instances of my API.
Thanks guys, I guess I just needed to post here as like a rubber ducky type thing.27 replies