V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
vileer
V2EX  ›  Python

问一个关于RESTFUL API的选型问题

  •  
  •   vileer · 2013-08-24 11:31:36 +08:00 · 4514 次点击
    这是一个创建于 3904 天前的主题,其中的信息可能已经有所发展或是发生改变。
    打算用gevent+memcahed+数据库做一个用于移动应用的RESTFUL API,本来数据库打算用mysql的,但是上次看一个livid的帖子说mysql不太好,所以想换别的。
    要求比较简单:支持同步,最好可以实时将修改同步到slave,然后slave再推送到其他节点
    14 条回复    1970-01-01 08:00:00 +08:00
    9hills
        1
    9hills  
       2013-08-24 18:14:01 +08:00
    技术选型没有好不好,只有合不合适。
    cj1324
        2
    cj1324  
       2013-08-24 20:47:36 +08:00
    貌似不少NoSQL数据库直接支持RESTful接口
    vileer
        3
    vileer  
    OP
       2013-08-24 22:23:17 +08:00
    @cj1324 mongoDB就支持,但是还是想套一层做鉴权和cache
    yearsaaaa
        4
    yearsaaaa  
       2013-08-26 09:42:04 +08:00
    这头像是我失散多年的兄弟吗
    ipconfiger
        5
    ipconfiger  
       2013-08-26 10:03:46 +08:00
    postgresql 正解
    clino
        6
    clino  
       2013-08-26 10:57:08 +08:00
    再给一个 openresty 的选择好了,呵呵
    railgun
        7
    railgun  
       2013-08-26 16:24:02 +08:00
    @yearsaaaa
    @vileer
    很明显你们两个有一腿
    tonyzzp
        8
    tonyzzp  
       2013-08-26 17:59:17 +08:00
    楼主你不是搞android的吗。
    vileer
        9
    vileer  
    OP
       2013-08-26 22:04:09 +08:00
    @yearsaaaa 看头像我们应该是失散多年的兄妹/姐弟
    vileer
        10
    vileer  
    OP
       2013-08-26 22:05:43 +08:00
    @tonyzzp 是搞android的,话说你是这么看出来的,难道我们搞android都长得一副猥亵样!OMG
    Livid
        11
    Livid  
    MOD
       2013-08-26 22:49:47 +08:00
    @Luin 写过一本关于 Redis 的书:

    http://book.douban.com/subject/24522045/

    建议你可以花时间读一下。如果 Redis 提供的功能完全能够满足需求,那就不要用 MySQL。
    vileer
        12
    vileer  
    OP
       2013-08-26 22:52:38 +08:00
    一不小心把@Livid 大牛钓出来,受宠若惊阿
    Livid
        13
    Livid  
    MOD
       2013-08-26 22:53:40 +08:00
    @vileer 我不是什么大牛,只是在这个问题有一些实际体会。

    在 V2EX 讨论实际问题就好,没有必要称呼什么大牛。:-)
    tonyzzp
        14
    tonyzzp  
       2013-08-27 10:41:34 +08:00
    @vileer 微博好友。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2162 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:35 · PVG 12:35 · LAX 21:35 · JFK 00:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.