Refactor producer
Make resend-service more frequent, once every 2 senconds.
Update keystore choosing algorithm.