简体   繁体   中英

What is the best way to benchmark Hazelcast's speed to data retrieval, comparing with direct DB calls / RESTful service calls?

Background: My team has been maintaining a mix of classic ASP/ASP.NET apps for over a decade. My company recently had a re-org in which teams and managers were either laid off or swapped around. My new manager is pushing for a refactoring of our entire app portfolio over the coming year or two to Java/Spring-boot to meet company infrastructural standards. Most of our apps today perform ETL tasks via sprocs from MSSQL or Oracle SQL databases, with a few connecting to APIs via SOAP and REST respectively.

Goal: As part of this rewrite, I've been asked to help make a decision about how we handle data retrieval for our apps and to determine if there are any opportunities for improvement. I want to try out Hazelcast (server) and "prove" it out-performs traditional data-retrieval methods like direct DB / REST calls.

Question: What would be the best approach for achieving my goal (benchmarking Hazelcast)? My initial idea is creating a proof of concept with Java & Spring to test a.) the average speed of a direct DB call, b.) the average speed of a RESTful API call, and c.) the average speed of retrieval from Hazelcast. I would make sure the record set is consistent across all three tests. Is this the right approach, or am I over/under complicating it? Is there already something built out I can use to demonstrate the same?

(Note, I understand Hazelcast is not meant to replace the original source of record , but provide data caching for quicker retrieval of subsequent calls. I want proof that it is indeed quicker to retrieve from the cache rather than just doing another DB/API call).

Google Group 上的同一问题也涵盖了这一点 - https://groups.google.com/g/hazelcast/c/Q6LpR8o6qII

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM