It is a little difficult to answer, but here is my answer:
In the first sentence, you are using 'which' to modify a whole sentence, and you should know that using this structure to build a sentence is 'informal' and is often seen in spoken English. This structure is generally not recommended in formal writing. Of course, you need a comma to show a pause in speech. As another example: The Argentina played amazingly yesterday, which surprised everyone.
But in the second one, you are using the general way of adding an adjective clause. Since you've used two commas around 'which is really interesting', the adjective clause is not necessary to identify the book. The listener already knows which book you are talking about. I hope my answer was clear to understand!