I'm creating API using Golang.
When I tested with Postman, I can see api and postgresql work well.
But, when I started to test with Jmeter, I sent 10000 posts simultaneously.
A few posts make an error. Like this
dial tcp 127.0.0.1:5432: connectex: No connection could be made because the target machine actively refused it.
There is an error in the line that makes db row.
I'm currently using gorm library for mapping objects.
Below code is makes error part.
var dbClient *gorm.DB
dbClient.Create(&{...object something})