
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
按照顺序从CGI开始入手Ruby CGI Doc:The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP request from a web server to a standalone program, and returning the output to the web browser.
了解Kafka是什么,它能用来做什么
Kafka 将Partition分布在Cluster的多个Server,这个数字也是可以配置的其中一个Leader负责接收所有读写请求,其它的Followers进行replicate,如果Leader down了,那么其它Follower会变成Leader,这个功能应该就是Kafka借助了Zookeeper来实现的另外要注意的是,每个Server都是其中一些Partit
A topic is a category or feed name to which messages are published.每个Partition都是一个排序的和不可变的消息队列,新消息都会append到结尾,每个message都会分配一个sequential id, 叫做offset,作为message的唯一的id注意的是Kafka的Cluster会保存在某个配
Producer负责分发message到topic,并且要选择哪些message分发到这个topic的哪个partition,分发机制可能使用轮询,也可以使用一些semantic的方法针对Java而言, 现在Kafka推荐使用的是新的kafka client API public static void sendMessage() { Map configs