小编ikr*_*ain的帖子

我应该使用哪个NoSQL数据库进行日志记录?

您是否有任何使用NoSQL数据库登录可扩展应用程序的经验?我已经对NoSQL数据库做了一些关于日志记录的研究,发现MongoDB似乎是一个不错的选择.另外,我发现log4mongo-net似乎是一个非常简单的选择.

你会推荐这种方法吗?还有其他建议吗?

.net logging mongodb

46
推荐指数
2
解决办法
4万
查看次数

使用Redis,MongoDB,ServiceStack进行.NET会话状态缓存

我一直在研究是否可以在外部Dbs(如Redis,MongoDb或其他高度可扩展的工具)中缓存.NET会话状态.

我的研究结果是,尽管MongoDB有更多的集成来完成这类工作,但似乎Redis的性能要高得多,而且还有更多的选项(密钥过期,集合等)可供使用.

还有另一个名为ServiceStack的框架,它有一个RedisClient的实现,但是恕我直言的实现方式比我想要的更加耦合.

 public override object OnGet(CachedOrders request)
    {
        var cacheKey = "some_unique_key_for_order";
        return base.RequestContext.ToOptimizedResultUsingCache(this.CacheClient, cacheKey, () =>
            {
                    //This delegate will be executed if the cache doesn't have an item
                    //with the provided key

                //Return here your response DTO
                //It will be cached automatically
            });
    }
Run Code Online (Sandbox Code Playgroud)

所以在这项研究之后,我想知道您的意见,以及您是否在任何应用程序中实现了这种缓存.你能分享一下你的经历吗?

谢谢!

distributed-caching mongodb redis servicestack

2
推荐指数
1
解决办法
1892
查看次数