Making stitching

How would you make stitching for your model? I manage to do it for a round chair seat just rotating simple cylinder. But is there way to make that cylinder follow curves in order to make stitching for more complex furniture.

There are several ways you can make them, it also depends on how you created the rest of the model.
Possible methods