concept duplicate in category cloud

This is an excerpt from Manning's book Designing Cloud Data Platforms.
Figure 5.10 Failures can result in duplicates even from reliable sources
![]()
duplicates introduced as a part of real-time systems failures/recovery processes Duplicates introduced at source are basically multiple copies of the same row of data that for one reason or another happened in the source system. It could be a human operator copy/pasting data in the Excel spreadsheet that was later exported as a CSV file and loaded into our data platform. It could also be caused by an issue in a relational database schema design where unique constraints are not enforced, allowing duplicate data to be added and then ingested into our platform. There are many different possible scenarios. What’s common about them is that they all happen outside of our data platform and we have little to no control over them.
In batch pipelines duplicates introduced at source, like a duplicate row inserted into a source table by mistake, or the same file delivered multiple times to an FTP server, are typically the only types of duplicates that you need to worry about. When it comes to the real-time system, a new type of data duplication problem is introduced. Real-time systems need to balance many different parameters. They need to provide low latency response, scale with increasing data volume and provide guarantees that data written to such a system is durably stored and will not disappear if one or more components of the real-time system fail. Since satisfying all these requirements at once is difficult (if at all possible), all existing real-time processing systems have to compromise on certain characteristics to provide expected behaviors in the face of one or more components of the system failing. Losing data in case of individual machine failures is usually not an option, so real-time systems introduce re-tries which in their turn can cause data duplicates.
Figure 6.16. A network issue between a real-time system and a data producer will prevent an acknowledgement to be sent. If a producer retries writing the same message, it may result in duplicates.
![]()