Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Routing - #6920

Merged
NateBrady23 merged 92 commits into
TechEmpower:masterfrom
donavindebartolo:master
Nov 19, 2021
Merged

Routing#6920
NateBrady23 merged 92 commits into
TechEmpower:masterfrom
donavindebartolo:master

Conversation

@abrowao

@abrowao abrowao commented Nov 15, 2021

Copy link
Copy Markdown
Contributor

Added Routing and fixed an issue with a JSON object

donavindebartolo and others added 30 commits September 8, 2021 22:01
Added test for Single Database Query
Updated to reflect addition of SDQ test
Now sends JSON object instead of string. Packages have also been fixed. Single Query Test is now passing!!!!
"Server" => "Julia-HTTP",
"Date" => Dates.format(Dates.now(), Dates.RFC1123Format) * " GMT" ]

jsonString = """{"Message": "Hello, World!"}"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The requirements for this test are such that you must instantiate an object on each request to then be serialized, not a string.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this has been addressed now, please verify. Thanks!

@@ -41,18 +47,20 @@ HTTP.listen("0.0.0.0" , 8080, reuseaddr = true) do http
row = first(results)
dbNumber = row[2]
jsonString = "{\"id\":$randNum,\"randomNumber\":$dbNumber}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

@@ -79,18 +87,21 @@ HTTP.listen("0.0.0.0" , 8080, reuseaddr = true) do http
dbNumber = row[2]
responseArray[i] = JSON3.read("{\"id\":$randNum,\"randomNumber\":$dbNumber}", jsonObj)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

@@ -120,14 +131,15 @@ HTTP.listen("0.0.0.0" , 8080, reuseaddr = true) do http
results = DBInterface.execute(conn, sqlQuery)
responseArray[i] = JSON3.read("{\"id\":$randId,\"randomNumber\":$randNum}", jsonObj)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

@NateBrady23
NateBrady23 merged commit 053452e into TechEmpower:master Nov 19, 2021
jbr pushed a commit to trillium-rs/FrameworkBenchmarks that referenced this pull request Mar 7, 2022
* Dockerfile test

* fix run.sh

* Working Docker build and plaintext/json tests implemented and passing..

* julia_server.jl patch

* Update julia_server.jl

Added test for Single Database Query

* Update benchmark_config.json

Updated to reflect addition of SDQ test

* Update julia_server.jl

Now sends JSON object instead of string. Packages have also been fixed. Single Query Test is now passing!!!!

* Testing multiple db queries test

* Testing multiple db queries test

* multiple db queries response formatting changes

* benchmark_config updates

* More multiple queries formatting

* Exception handling for multiple queries

* More handling...

* More handling

* Even more exception handling.....

* Exception handling for multiple queries test

* Exception handling for 0

* Condensing exception handling for multi db queries

* Exception handling fixes...

* exception changes

* Rand num changes

* Rand num changes

* Array changes

* Added StructTypes

* struct fix

* test

* revert test

* Fix reduncancy/formatting code...

* Fixed response headers

* Update README.md

* Update README.md

* Create README.md

* Update julia_server.jl

Added Fortunes test

* Update benchmark_config.json

added fortunes test

* Update julia_server.jl

changed header type

* Update README.md

Added Fortunes test "checkmark"

* Added solution for db updates test

* Update julia_server.jl

Closed DB connections

* Update README.md

added updates

* Update julia_server.jl

ROUTING WORKS!!!!!!!

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* Update julia_server.jl

* addressed usage of json string

Co-authored-by: donavindebartolo <[email protected]>
Co-authored-by: donavindebartolo <[email protected]>
Co-authored-by: Jayenn <[email protected]>
Co-authored-by: KadeBerry <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants