缓存在.Net中实现大数据 [英] Cache implementation large data in. Net

查看:63
本文介绍了缓存在.Net中实现大数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在实施第三方api,如酒店/巴士。我想将搜索结果存储在缓存中。这导致巨大的数据。能否请你建议,我该如何实施.Net c#。



我尝试过的事情:



我试过将数据存储在文本文件中..

Hi there, I'm implementing a third party api like hotel/bus. I want to store the search result in cache. This m lead to huge data. Can you please suggest, how can i implement in. Net c#.

What I have tried:

I have tried with storing the data in text file..

推荐答案

要做的第一件事是弄清楚你要拿多少信息关于,以及如何访问和索引它。你正在使用一些非常大的物品,或许多小物品?

用它做什么?

你需要什么才能访问它?你需要缓存多少?所有的?每个项目的一小部分?你能推迟加载吗?或者你真的需要一次全部吗?

你需要一次使用权限,还是多个同时用户?



所有这些东西会影响您的存储选项,以及您需要接受的妥协才能实现这一目标。



我们不能为您做到这一点,而且您不能急于求成 - 否则你将在项目中失败。如果您真的处理大量数据,那么这里没有好的捷径。
First thing to do is work out how much information you are taking about, and how you need to access and index it. Are you working with a few very large items, or a lot of small items?
What is going to be done with it?
What do you need in order to access it? How much of it do you need to cache? All of it? A small bit of each item? Can you defer loading? Or do you really need all of it at once?
Do you need one use access, or multiple simultaneous users?

All these things will affect your storage options, and the compromises you need to accept to get this working.

We can't do that for you, and it's not something you can rush - or you will build failure into your project. There are no good short cuts here if you are really dealing with significant amounts of data.


这篇关于缓存在.Net中实现大数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆