piolad / chat-app

3 stars 1 forks source link

Make the request faster, now it is nearly a second #37

Closed jakublaz closed 6 months ago

piolad commented 6 months ago

seems to be a problem on auth-service side

piolad commented 6 months ago

id recommedn going over docker networks

piolad commented 6 months ago

| 12:35:49.926 info: Login request received from brud auth-service-1 | 2024-05-27 12:35:50.129785095 UTC: login request started auth-service-1 | 2024-05-27 12:35:50.150877393 UTC: after query auth-service-1 | 2024-05-27 12:35:50.151056616 UTC: before password verification auth-service-1 | 2024-05-27 12:35:53.714706542 UTC: verification ok

piolad commented 6 months ago

seems like password verification takes a long time

piolad commented 6 months ago

btw this branch will not be merged, will be deleted instead

jakublaz commented 6 months ago

On my branch i have found the solution to the problem, by default the hashing cost, so the complexity was at 10. Knocking it down to 4 lowers the hashing time but also lowers security