I believe comments, posts, and votes are placed into a queue and later (seconds usually) committed to the database. They're not visible to the public until they're committed (but they make the UI act like it's already there for the poster themselves). Just a guess from my observations though.