2 ms·
The db is separate and the interfaces are defined and the test is for this interface (as part of the schema repository) You dont need an ORM for testing your c
by zkomp 9y ago
The db is separate and the interfaces are defined and the test is for this interface (as part of the schema repository)
You dont need an ORM for testing your code...
But I think this varies from project to project.
How many different applications, in different languages are using your db and do you tolerate downtime?
- scarface74 9y agoWhy downtime? A developer commits their code, the CI server builds the code, run non database dependent unit test, it gets deployed to the integration environment, automated integration tests get run - fewer in number somewhat slower - it gets deployed to the QA environment and goes through a round of manual testing (sometimes), QA signs off and the build gets deployed to the UAT environment and waits for the business owners sign off, then we turn off the A side of the load balanced farm and it gets to deployed to the A side of the load balanced production servers, it goes through a round of smoke testing (automated and/or manual) and once everyone is satisfied, we make A live, set the load balancer to use side B and deploy to B. All of the manual sign off steps are integrated with the automated release pipeline. As soon as the required approvals sign off, the next step of the pipeline is done. Rolling back is just redeploying the previous released version. Branching, source control, etc is also a lot easier when all of your business logic is in code and you don't have to sync up the "right" version of your source control with the right version of your stored procedures. Of course this is even easier when you're using a NoSql solution where your schema is also defined by your class models. But that's another discussion..... Of course this doesn't have to just apply to code. With things like Packer and Terraform you can do the same with infrastructure. Automated infrastructure deployment is not my expertise...yet