small databases can be entirely stored in memory, rather than in redis cache. For eg: we can read the whole data from database and store the data in a map during application startup and use this in-memory map for the processing of each request. Note: this approach can only be used when the database is used only to read data and there are no write transactions.
Spring WebFlux with a streaming API.... That way you can start presenting data to the user as it becomes available. User experience is much better, none of the 20 sec wait with a spinning wheel.
@DailyCodeBuffer Please do some realtime tutorial on this and also Please make a video on Reactive Programming and use of webclient over restTemplate. Please add these to your bucket list and also keep posting videos on springBoot and RestAPIs. It'll help the rookie developers.
Head to cutt.ly/spring_micro and use Coupon Code DCBFEST to get a HUGE Discount on the course.
Another way of increasing the performance is:
- Use of async HTTP client e.g use of Webclient over RestTemplate (Reactive Prog.)
In my last project we used async Executors for initiating rest calls, then some business logic and then future.get() and callback
small databases can be entirely stored in memory, rather than in redis cache. For eg: we can read the whole data from database and store the data in a map during application startup and use this in-memory map for the processing of each request.
Note: this approach can only be used when the database is used only to read data and there are no write transactions.
Can you share any reference where this was implemented?
Won't it affect the performance of the machine entirely when there is increase in db data or no of apps?
@@willwarasug.t.8126 yes it would. this approach can only be used when the data set is of limited size.
I have never seen this kind of approach, can you explain?
I never seen this type of performance increase could make one video
Spring WebFlux with a streaming API....
That way you can start presenting data to the user as it becomes available. User experience is much better, none of the 20 sec wait with a spinning wheel.
Practical video needed for each
could you please provide complete example on asyn logging for an application
Very good, short and precise..
Keep sharing spring boot tips...Tnx..
I want 2 more ways to improve the performance of API's:
1. db indexing
2. creating the view's
Can you show us how to implement async logging please
You can put your log in a queue and use background worker service to write log
DB indexing is another way to improve the API performance
What about reactive programming? Sorry if I've repeated somebody :)
Very nice.
Can you plz explain with example
Hi Bro!
Can you make the viedo on code reviews and shotcut with spring and java.
awesome video, thank you ☺️
Glad you liked it!
Good job 👍🏻
Isn't connection pooling handled by springboot itself? I see hikaripool warning regularly on console.
Yes, We can provide the configuration
For spring boot 3 hikaripool is autoconfigured maybe
any examples with springboot app? can you show realtime example
I will plan on it
@DailyCodeBuffer Please do some realtime tutorial on this and also Please make a video on Reactive Programming and use of webclient over restTemplate. Please add these to your bucket list and also keep posting videos on springBoot and RestAPIs. It'll help the rookie developers.
use of gRPC
great. btw the filter hurts the eyes ;)
Sorry about that
M