Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mug-safesql/src/main/java/com/google/mu/safesql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ construction—areas where mistakes are easy to make and hard to find otherwise.

## Security Best Practices

No additional best practices are needed: if your code compiles and the `SafeSql` object is succesfully constructed,
No additional best practices are needed: if your code compiles and the `SafeSql` object is successfully constructed,
your SQL is safe from injection.

But just as a tip to avoid running into safety-related runtime errors during test: remember to identifier-quote
Expand Down
2 changes: 1 addition & 1 deletion mug/src/main/java/com/google/mu/util/concurrent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Already, you can write intuitive code to call outgoing rpc, wait for the result,

But sometimes when you serve a request, you need to invoke several outgoing rpcs, or read from db. Doing them sequentially results in longer request latency and you spend most of the time waiting.

It makes sense to do these IO-bound operations concurrently. [JEP 453](https://openjdk.org/jeps/453) is still in preview. And the API as it is still feels a bit verbose. So we created a simpler API ([Fanout](https://google.github.io/mug/apidocs/com/google/mu/util/concurrent/Fanout.html)). It focuses on the most common fanout use case where the [ShutDownOnFailure](https://docs.oracle.com/en/java/javase/20/docs/api/jdk.incubator.concurrent/jdk/incubator/concurrent/StructuredTaskScope.ShutdownOnFailure.html) stragegy is sufficient.
It makes sense to do these IO-bound operations concurrently. [JEP 453](https://openjdk.org/jeps/453) is still in preview. And the API as it is still feels a bit verbose. So we created a simpler API ([Fanout](https://google.github.io/mug/apidocs/com/google/mu/util/concurrent/Fanout.html)). It focuses on the most common fanout use case where the [ShutDownOnFailure](https://docs.oracle.com/en/java/javase/20/docs/api/jdk.incubator.concurrent/jdk/incubator/concurrent/StructuredTaskScope.ShutdownOnFailure.html) strategy is sufficient.

For example if you need to concurrently read from db, and invoke a rpc to fetch some data:

Expand Down