It might take a few days to pass - as long as he is eating and drinking and eliminating normally w/o any puking, I would just keep an eye on him and not panic yet.
As for surgery, I haven’t been through it but know several people who have. From what they’ve said, the recovery is very similar to a spay or neuter - complete rest for few days, restricted activity for 7-14 days after that.