Cary

Results 7 comments of Cary

@Mountains-and-rivers Sorry 现在才看到, 如果你还没解决,可以详细描述一下吗

> 保存conn时用到了bucket, 这个在最下层还是使用了map > golang中的map有一个很大的问题:delete根本就没有真删除,只是标识了一下,也就是说内存根本就没有free > 随着conn的进进出出,长时间运行下去这块内存是不是泄露了呢(内存会慢慢增加),这只是我的一个疑惑 > > note: 看map源码, 它实际有一个扩容机制,如果达到扩容条件时,会新建map底层数据(原来的内存就会被free),这样想想好像也不会存在上面的问题 > > 望大哥说说你的想法呢 不会内存泄露。Golang GC的时候会把完全没有用到的内存释放。之前有做过go websocket的后端服务,正常情况不会有问题

Me too. I use "github.com/bsm/sarama-cluster" with kafka consumer group feature

@d1egoaz ```go config.Consumer.Offsets.AutoCommit.Interval = 1 * time.Second ``` Hello, I try it, but it doesn't work. ```go clusterConfig.Consumer.Offsets.CommitInterval = time.Second ``` This works

> I solved this problem. > > 1. first, you should start the nginx under the hood by following commands: > PORT=3001 ./volume /tmp/volume1/ &; > PORT=3002 ./volume /tmp/volume2/ &;...

消息队列的选择还是很多的吧