The previous answer incorrectly identified "Duke" as a rival (Duke is Noah's nursing home alias). Here are actual ironic elements in The Notebook:
The notebook—created by Noah to preserve memories—ultimately becomes the tool that restores them when Allie's dementia has erased them. The object meant to record the past becomes the key to reclaiming it in the present.
Throughout the framing story, the audience realizes Duke is Noah and the listener is Allie long before Allie does. We understand the significance of his reading; she experiences it as a stranger's story until her momentary clarity.
Allie's parents oppose Noah due to his class, pushing her toward "suitable" Lon Hammond. Yet Lon—wealthy, educated, "appropriate"—loses Allie to the very qualities (passion, authenticity) her parents dismissed. The "right" choice by societal standards fails; the "wrong" one endures.
Allie, once vibrant and decisive, loses her memories—the essence of her identity. Noah, who once felt defined by his love for her, finds purpose in being her memory. The keeper of memories becomes the memory itself.
Their reunion requires Allie to break her engagement—causing pain to Lon, who did nothing wrong. Their "happily ever after" is built on another's heartbreak, a bittersweet truth the film softens.
These ironies deepen the story beyond simple romance, highlighting love's complexity, memory's fragility, and the unintended consequences of our choices.