![]() | |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
That is the question which... So, I have the following use-case: A user-request comes in and is processed. This already happens normally. We want to record what the user-request was, along with a (small) set of resources that were used during the request processing. In another process, we are handling updating those resources. When a resource is updated, we want to look up which user-requests used that resource, and do "something" accordingly. We only care about user-requests that happened less than two weeks ago. We'd like to minimize user-request latency (eg. adding this recording shouldn't slow down user-request processing more than a few milliseconds). The resource updating happens far less frequently than user-requests. My first inclination is to use MySQL, since that is what we use most-often for data-stores around here. |
|
I was considering buffering the whole thing with a JMS queue (we're a Java shop BTW), so that any DB latency would be offloaded away from the user-request processing. |
|
Then, I was thinking that some nosql solutions might fit better, and provide better performance. I don't know much about the various nosql solutions available, so I'm not really sure where to start. |
|
For what its worth, the user-request can be represented as one string+several key-value pairs, and the resources can be identified with two 32bit integers OR another user-request (depending on the resource type). |
#3
| |||||
| |||||
|
|
That is the question which... |
|
So, I have the following use-case: A user-request comes in and is processed. This already happens normally. We want to record what the user-request was, along with a (small) set of resources that were used during the request processing. In another process, we are handling updating those resources. When a resource is updated, we want to look up which user-requests used that resource, and do "something" accordingly. We only care about user-requests that happened less than two weeks ago. |
|
We'd like to minimize user-request latency (eg. adding this recording shouldn't slow down user-request processing more than a few milliseconds). The resource updating happens far less frequently than user-requests. My first inclination is to use MySQL, since that is what we use most-often for data-stores around here. I was considering buffering the whole thing with a JMS queue (we're a Java shop BTW), so that any DB latency would be offloaded away from the user-request processing. |
|
Then, I was thinking that some nosql solutions might fit better, and provide better performance. I don't know much about the various nosql solutions available, so I'm not really sure where to start. |
|
For what its worth, the user-request can be represented as one string+several key-value pairs, and the resources can be identified with two 32bit integers OR another user-request (depending on the resource type). |
![]() |
| Thread Tools | |
| Display Modes | |
| |