Disadvantages

Making loosely coupled observers and subjects can create difficulty to achieve some part of system as per the expectations. For example, Subject doesn't have more details about observers and if the system crashes suddenly, then the subject will not have way to get idea about observers due to loosely coupled system.

Due to dynamic relationship between objects, update to more than one observer can become costly sometimes when switching happens frequently.

Get Test-Driven JavaScript Development 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.