This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ example-servant-minimal git:(master) ✗ cat post.lua | |
wrk.method = "POST" | |
wrk.body = "1" | |
wrk.headers["Content-Type"] = "application/json" | |
➜ example-servant-minimal git:(master) ✗ cat reproduce.sh | |
for i in {1..100} | |
do | |
wrk -c 1 -d 5 -t 1 -s post.lua http://127.0.0.1:3000/echo | grep -i "requests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ example-servant-minimal git:(master) ✗ cat stack.yaml | |
resolver: lts-13.8 | |
packages: | |
- '.' | |
➜ example-servant-minimal git:(master) ✗ cat reproduce.sh | |
echo 1 > test.json | |
for i in {1..100} | |
do | |
ab -T 'application/json' -H 'accept: application/json' -n 1000 -c 1 -p test.json http://127.0.0.1:3000/echo 2>&1 | grep "across" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ example-servant-minimal git:(master) ✗ cat stack.yaml | |
resolver: lts-13.8 | |
packages: | |
- '.' | |
➜ example-servant-minimal git:(master) ✗ cat reproduce.sh | |
echo 1 > test.json | |
for i in {1..100} | |
do | |
ab -T 'application/json' -H 'accept: application/json' -n 1000 -c 1 -p test.json http://127.0.0.1:3000/echo 2>&1 | grep "across" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Exception is: | |
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compilePreprodDebugJavaWithJavac'. | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) | |
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) | |
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68) | |
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) | |
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) | |
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) | |
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.groww.resources.auth; | |
import com.groww.db.model.Users; | |
import io.dropwizard.auth.AuthenticationException; | |
import io.dropwizard.auth.Authenticator; | |
import io.dropwizard.auth.basic.BasicCredentials; | |
import org.hibernate.Query; | |
import org.hibernate.Session; | |
import org.hibernate.SessionFactory; | |
import org.mindrot.jbcrypt.BCrypt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.groww; | |
import com.fasterxml.jackson.databind.SerializationFeature; | |
import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module; | |
import com.groww.db.model.Users; | |
import com.groww.resources.SyncerResource; | |
import com.groww.resources.auth.GrowwAuthenticator; | |
import com.groww.resources.auth.GrowwAuthorizer; | |
import io.dropwizard.Application; | |
import io.dropwizard.auth.AuthDynamicFeature; |