multithreading - 3 threads per request
问题描述
I have a spring boot app that will be used on a fairly popular e-commerce platform. I need to create 3 threads to run Cassandra queries in parallel with some business logic to make the service performant. Is this unheard of? I have barely used threads in my young career.
解决方案
That right. I usually create batch to query cassandra. Use ThreadPool query cassandra to make the service performant
推荐阅读
- apache-pig - Pig Apache 问题最重的排名输出?
- flutter - 快速滚动时从最后一页开始的 SliverChildBuilderDelegate 中的 PageView
- c# - 将 ASP.NET Core gRPC 配置为在服务器和客户端上都使用 SSL/TLS
- python - 试图在 python 中读取我的 .json 数据但不断收到错误
- php - 使用 SQL 或 PHP 按字母顺序排列多维数组
- ajax - WordPress帖子分页不适用于ajax
- delphi - Delphi Barcode Scanning - 进入只读编辑框
- android - 从 android 应用程序访问 facebook 页面时出现问题
- python - 如何在 python 中将时间添加到持续时间,而不是一天中的时间?
- kotlin - Kotlin 适配器模式:getter 函数上的方法名称重复错误