For levelling a warlock solo, Demonology is the clear pick. The pet does a meaningful share of your damage, which means you spend less time casting and more time moving — and that self-sufficiency is exactly what you want when there is no healer behind you.
Affliction is the alternative worth considering. Its damage-over-time approach lets you spread corruption across several targets and keep moving, which is strong for quest grinding, but it is less forgiving when a fight goes wrong because your damage is already committed. Destruction hits hard but has the worst survivability of the three when you pull something you cannot handle.
I am less certain about an optimal rotation, and it varies by patch and by which expansion you are playing, so treat any specific sequence with suspicion. The reliable solo habit is Life Tap for health, drain to keep yourself alive, and Voidwalker when you need a buffer.