this post was submitted on 27 Jul 2023
245 points (99.2% liked)

Programming Humor

2496 readers
1 users here now

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 1 year ago
MODERATORS
245
DO NOT TOUCH (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by devil_d0c to c/programminghumor
 

Edit: so im done with my preliminary research into this codebase.

Our corporate SSO provider is changing, so I've been updating our tools to take advantage of the new badges. I found this in a web application that I started on today. The original developer is long gone, and according to our PaaS, this app has been running for just under 3 years without an update.

There is no CI/CD, blue-green deployment, or back ups. The database is an H2 db with ddl-auto set to create-drop on startup, meaning that this database will delete itself if the app is restaged but thanks to this guys code, it won't populate itself. ๐Ÿคท

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 21 points 1 year ago (1 children)

Recovering a database from a backup is often possible but often a pain in the ass, and depending on the application you may not consider it acceptable to lose a day of data

[โ€“] tdawg 2 points 1 year ago (1 children)

Then you need more frequent backups and possibly even live failovers imo

[โ€“] [email protected] 2 points 1 year ago

Yeah, of course you want restoring from backups to be as easy as possible. It's just sometimes not feasible, usually because someone can't afford the time or equipment to set it up.