Practicing and exploring
Test your knowledge and understanding by answering some questions, getting some hands-on practice, and exploring this chapter’s topics with deeper research.
Exercise 9.1 – Test your knowledge
Answer the following questions:
- How much longer does it take to read 1 MB of data from SSD compared to memory?
- What is the difference between absolute and sliding expirations?
- What unit of measurement is used by
Size
for the in-memory cache? - You have written the following statement to get information about in-memory caching but
stats
isnull
. What must you do to fix this issue?MemoryCacheStatistics? stats = _memoryCache.GetCurrentStatistics();
- What data types can be stored in (a) an in-memory cache, and (b) a distributed cache?
- What are the differences between the Retry and Circuit Breaker patterns?
- When using the RabbitMQ default direct exchange, what must the routing key be for a queue...