Skip to content

Instantly share code, notes, and snippets.

View liyp's full-sized avatar

Peng:-) liyp

View GitHub Profile
@liyp
liyp / cassandra-cql.md
Created July 30, 2015 08:53
cassandra cql

Cassandra CQL 执行效率

目标

  • 对推送保存记录表push_app_task push_device_task的查询:
    1. 主KEY上的搜索(partitionKey和带上clusterKey的区别)
    2. 索引上的搜索(单个和多个的区别,单个索引上少值和多值的区别)
    3. 混合主Key和Index上的搜索
  1. 表上的聚集操作(计算count(*))和 迭代累加计数
@liyp
liyp / pns.md
Last active August 29, 2015 14:15
Push Notification Service

Push Notification Service

推送实现

  • 使用GCM服务(Google Cloud Messaging)
  • 使用XMPP协议(Openfire + Spark + Smack)
  • 使用MQTT协议(MQTT: MQ Telemetry Transport)
  • 使用HTTP轮循方式