Using MongoDB with ASP.NET Core Part I (Setup)
In this 2 part series,I will show you how to use MongoDB as data storage in your ASP.NETCore application. As you may know, MongoDB is an open-source document database, and leading NoSQL database. Itis...
View ArticleUsing MongoDB with ASP.NET Core Part II (Implementation)
Infirst post, i talked about MongoDB briefly and showed howto set up local environment to work with MongoDB. In this second post, I will show you how to actually use MongoDB as a data storage with...
View Article高并发下的九死一生,一个不小心就掉入万丈深渊
引言 每次开篇LZ都会先说一下自己最近很忙,所以才没有时间写博客。这次这些话就不多说了,我们直入主题,尽管LZ依旧是非常的繁忙…...
View ArticleSSH框架和Redis的整合
一个已有的Struts+Spring+Hibernate项目,以前使用mysql数据库,现在想把Redis也整合进去。 1. 相关Jar文件 下载并导入以下3个Jar文件: commons-pool2-2.4.2.jar、jedis-2.3.1.jar、spring-data-redis-1.3.4.RELEASE.jar。 2. Redis配置文件...
View Article特邀讲座:向赎金说不 MongoDB安全最佳实践
特邀讲座:向赎金说不 MongoDB安全最佳实践 最近关于MongoDB黑客赎金事件刷爆了朋友圈。针对于社区不少同学提到对MongoDB安全功能不太了解的情况,我们的高级咨询顾问张耀星将为大家特地推出一个安全线上讲座。在这个讲座里他会给大家介绍MongoDB的一些基本安全功能,最佳的部署实践,并佐以一些演示来让大家了解到启用安全很重要,而且也很容易!...
View Article将Berkeley DB基本数据库操作封装成类
Berkeley DB是一个嵌入式数据库,适合于管理海量的、简单的数据。 键值对(key/value)数据存储方式使Berkeley DB用来进行数据库管理的基础,每个key/value构成一条记录。 Berkeley的数据库主要就是put和get,前者存入键值对,后者根据键获取值。 因为Berkeley DB的数据库操作有些复杂,所以将其封装成了一个简单的类: package ch01_3;...
View ArticlePosting Additional Parameters During Authentication With Auth0 In Angular 2.4.1
The other day, I looked at how to provision new Cloudant / CouchDB databases as part of the Auth0 authentication and authorization process . But, after that post, I felt uneasy about trying to keep...
View ArticleVariable size integer encoding
It is a known fact of nature that most integers are small. When transferring data over the network, or to/from disk, or pretty much anywhere the IO is slow, keeping data compact is a plus. Obviously,...
View ArticleMongoDB “ransomware” exists because people are bad at security
Over the course of a turbulent week, several hackers were able to break into over 10,500 systems running the MongoDBdatabase software. Once inside, the attackers would wipe the database and leave a...
View ArticleMeasuring Capacity Through Utilization
One of my favorite concepts when thinking about instrumenting a system to understand capacity is what I call “time utilization”. This is the question of, for a given thread in some system, what...
View ArticleMongoDB ransom attacks soar, body count hits 27,000 in hours
MongoDB databases are being decimated in soaring ransomware attacks that have seen the number of compromised systems more than double to 27,000 in a day. Criminals are accessing, copying and deleting...
View Articleredis-sentinel
redis-sentinel: 解决的是主从切换的的问题,其已经被集成在redis2.4+的版本中 过程以及效果: 1):Master状态检测 2):如果Master异常,则会进行Master-Slave切换,将其中一个Slave作为Master,将之前的Master作为Slave...
View ArticleRemote Oracle DBA: Moving to the Cloud
If you have been thinking of migrating to the cloud, then your DBA or database administrator should look at the pros and cons in order to figure out if this transition will work well with the goals...
View ArticleEnabling Access to Apache Ignite via Redis Protocol
Starting from 1.8.0, Apache Ignite introduced Redis protocol support and implemented a set of commands. Now, one can store and retrieve data in the grid using any Redis client. In this article, we...
View ArticleRant on Reduction
Tl; Dr: There is too little code reuse in software, particularly at the community level Examples of useless duplication (not-dry) include manyprogramming languages, package managers, data-stores, tools...
View ArticleSequoiaDB 关于 MongoDB 安全事件的一些思考
刚刚过去的这个周末,各位大数据和数据库从业者想必是被MongoDB的“安全事件”给刷屏了,MongoDB作为当前NoSQL在全球的领军人物,遭到这么大规模的黑客攻击,这也再次让我们对于新一代的开源数据库的数据安全问题带来了思考。而SequoiaDB 巨杉数据库作为国内领先的新一代分布式数据库厂商,我们也来说说我们对这个事件的看法。 事件回顾...
View Article接口响应时间长的调优经验
随着移动互联网的兴起,海量的终端带来的是数据量的飞速增长,对于存储的需求也随之增长;随之引发的接口响应率等问题也不断暴露….. 业务背景 业务之初采用的技术架构: 使用单库单表进行存储app信息 接口层面与库直接交互操作 服务状态: 数据库采用NoSql中的MongoDB; 接口每日请求 10 亿,超时率在 15% 左右 数据量激增带来的问题 数据量的激增给我们的系统带来了哪些挑战?...
View ArticleHadoop监控分析工具Dr.Elephant
公司基础架构这边想提取慢作业和获悉资源浪费的情况,所以装个dr elephant看看。LinkIn开源的系统,可以对基于yarn的mr和spark作业进行性能分析和调优建议。 DRE大部分基于java开发,spark监控部分使用scala开发,使用play堆栈式框架。这是一个类似python里面Django的框架,基于java?scala?没太细了解,直接下来就能用,需要java1.8以上。...
View ArticleRansomware: Over 27,000 databases managed by MongoDB held to ransom; 99,000...
Tens of thousands of online databases have been breached by what appears to be a single hacker or group of hackers. The databases in question appear to be managed by MongoDB, a database application. A...
View Article