Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: How do you access the database from maintenance jobs?
1 point by emilburzo on Feb 22, 2018 | hide | past | favorite
(Assuming the standard database + application server that provides the API endpoints)

How do you handle accessing the database from periodic maintenance tasks? (anything from cron phps to aws lamba functions)

Do you connect directly to the database?

Do you add specific endpoints in the application server/API so that the job doesn't directly access the db?

What pros/cons did you notice with your approach?



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: