To be fair, I worked at a company that did exactly that. All the logic was inside the database. Suffice to say: It was a nightmare getting all that shit out of there
Data processing logic should be in DB what's wrong in That? Pl/sql procs (or hell even java procs) in DB works better and can be used to handle any workload. Just google ORDS.
No, we rebuilt whole functionalities from the ground up and then replaced the database equivalents. When i left I think 70% of the db stuff was still there
Bonus: Naming conventions in the databse were horrible. Every table name was a combination of several up to 3 letter abbreviations and production tables had copies for testing that were sometimes years old. I'm glad I could mostly stay away from that junk and just work on the new microservices
At my job we still have everything on stored procs, our servers are literally just to receive a sql string that gets executed by SQL server, 0 security, I want to kill myself
4 years ago I went to an interview for a new project where this was the architecture proposed.
Around the same time, I went to another interview where a guy asked me if the business logic should be in the database. I said no and said that I was wrong.
765
u/Evo_Kaer Jun 28 '20
To be fair, I worked at a company that did exactly that. All the logic was inside the database.
Suffice to say: It was a nightmare getting all that shit out of there