As well as the other links provided by users you should also check this thread because theirs is an out of the box solution covering well over 1000 transactions per second on the free version: https://rubykube.io/
Even though that's a great suggestion (or the best even), I don't think it would help because it's a fork of Peatio and If OP is finding trouble working with that, I doubt RK will be any easier for him.