using goroutines for redis history saving