Cache service example. It uses fasthttp as an http server and bigcache as the cache.
External benchmarks are provided.
go run main.go
Server listens on 8080 port.
/** | |
* Materials: | |
* How to read only portion of bytes in a file on Google Drive: | |
* https://stackoverflow.com/questions/60181888/google-apps-script-get-range-of-bytes-from-binary-file | |
* TIFF File structure: https://www.awaresystems.be/imaging/tiff/faq.html#q3 | |
*/ | |
const TIFF_IFD_FIELD_LENGTH_IN_BYTES = 12; | |
const NUMBER_OF_BYTES_TO_READ_FROM_FILE = 500000; |
Index: core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java (revision 307ffdadf89e53c685ecf7bec04e8711e61d310e) | |
+++ core-server/src/main/java/org/glassfish/jersey/server/ServerRuntime.java (revision ) | |
@@ -452,11 +452,11 @@ | |
if (waeResponse.hasEntity()) { | |
return waeResponse; |