Break Your App Like a Server
Errors do not always happen from user initiated actions—different processes and tools can fail on the server. Your application may experience network disconnections between servers, database slowness or downtime, and crashed processes due to bugs or a large amount of work. It’s nearly impossible to consider everything that can go wrong in an application, so you often won’t realize that there is a problem with failure handling until it’s too late. You can simulate many types of problems locally and in staging environments before experiencing them in production.
In this section, we’ll test what happens to our application during database downtime and when different processes crash on the server. We’ll utilize the observer ...
Get Real-Time Phoenix now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.