After rereading A Dance with Dragons, I was struck by the parallels with the early Soviet Union.
Obviously the events aren't a direct copy, any more than the War of the Five Kings is of the War of the Roses, or than Aegon is of William. And I'm not sure GRRM even had any parallels consciously in mind when writing his way through the Meereenese Knot. But I think the connections are there, and they're interesting.
Unlike Yunkai, where Dany arrives as an invader with an unstoppable army and demands the freedom of the slaves as tribute, in Meereen, Dany is bringing class war and revolution, as the vanguard of an inevitable historical process, and the masters fall easily. (The TV show makes this even more obvious: first she and Daario demonstrate that traditional national warfare is no longer relevant, and then she literally shows the slaves that they have nothing to lose but their chains. And of course she has an army who have turned on their leaders to fight for the freedom of the people, and elected their own new officers.)
But revolutions don't end when the old regime is overthrown, and that's where the story gets interesting.
Dany first has to deal with the moral dilemmas of revolutionary terror (crucifying the masters) and what it takes to fight a counter-revolution (taking the children hostage).
She then needs to rebuild an economy that had already been untenable before she completely overturned its supports. She handles this by instituting a top-down plan of agricultural and trade reforms, but clearly things are going to get a lot worse before they get better.
Ultimately, in order to resolve both the counter-revolution and the economic problems, Dany is forced to accept Hizdahr's proposed compromise, restoring many pre-revolutionary institutions, albeit with (sometimes major, sometimes only token) reforms. This is effectively the New Economic Plan of 1921. The arguments for it are those of Stalin and Bukharin, and against it are those of Trotsky and company. Like Lenin, Dany accepts the proposal but recharacterizes it as a temporary and partial retreat, not a long-term goal-driven policy.
Finally, to deal with the external threat of war with Yunkai and their allies, Dany agrees to not interfere with their slave trade. This parallels the debate between Trotsky and Stalin on international revolution vs. Socialism in One Country, and again she comes down on the same side as the USSR.
And of course the only thing holding it all together is a Cult of Personality around Dany, Hero of the People.
Obviously this isn't GRRM painting Dany as becoming a bad guy because she's like Stalin (or whitewashing Stalin by showing that he made hard but correct choices like his hero Dany!). If there's any intentional parallel there (which there probably isn't), it's meant to point out that nothing is ever black and white. After all, Stalin brutally repressed a nation, and his paranoia led to the deaths of millions of innocents, and yet he's still the guy who stopped Hitler; you don't get one or the other, you get both, and you have to deal with that.
What makes this interesting is that the two sides represented by Trotsky and Stalin in history are both internal to Dany in the story. Yes, sometimes there are people like Shavepate and Hizdahr suggesting them, but her internal monologue always shows her struggling with both sides of the argument, and with how they relate to her own moral sense. Crucifying the masters isn't just a question of whether it will pacify or exacerbate a possible counter-insurgency, but of whether it's righteous justice or destructive vengeance. Agreeing to the Yunkai slave trade isn't just a question of whether revolution in one country is a recipe for success or failure, but of whether accepting the injustice is tolerable if it can bring peace, prosperity, and freedom to her people.
In The Revolution Betrayed, Trotsky said that only someone who had come to identify with the Party as a person could truly understand the tragedy of what Stalin had done. In A Dance with Dragons, that's effectively what GRRM does for us: He forces us to see these political questions as personal by making it as personal as possible. Lenin may have had to metaphorically get into bed with the NEPmen, but Dany has to literally get into bed with Hizdahr. But GRRM is not using Dany to show the tragedy of the Revolution, he's using the political story to show us the tragedy of Dany's character. Because ultimately, whether it turns out that Dany was a misguided fool, an unknowing puppet of the Littlefinger-esque Shavepate, or the best hero Slaver's Bay could hope for, the story of Dany's internal conflicts is the part that's interesting to GRRM.