针对本地开发(local development)及测试(testing),我们可以在主机上以单机模式运行Pulsar。单机模式(standalone mode)包括Pulsar broker,必要的Zookeeper以及BookKeeper组件,并运行在同一个JVM进程中。

Read More

MongoDB CRUD操作即创建(create)、读取(read)、更新(update)、删除(delete) documents。本文我们介绍一下这些操作,在此做个记录,以便后续查阅。

Read More

如下是MongoDB官网对自身的介绍:

MongoDB was founded in 2007 by Dwight Merriman, Eliot Horowitz and Kevin Ryan – the team behind DoubleClick.

At the Internet advertising company DoubleClick (now owned by Google), the team developed and used many custom data stores to work around the shortcomings of existing databases. The business served 400,000 ads per second, but often struggled with both scalability and agility. Frustrated, the team was inspired to create a database that tackled the challenges it faced at DoubleClick.

This was when MongoDB was born.

Read More

Linux中有一个让很多初学者都特别清除的概念,叫做“根文件系统”。我接触Linux前前后后也好几年了,但是对这个问题,至今也不是特别清楚,至少没法给出一个很全面很到位的解释。于是,今天我们就来理一理这个话题。

Read More

使用go test进行测试,没有修改测试代码的情况下, 重复多次测试,发现测试结果没有变化。如在外部修改了数据库,但是在go test查询mysql却显示之前的查询结果。参看:

Read More