humiaozuzu
V2EX  ›  问与答

关于多个后端app业务逻辑重复的问题

  •  
  •   humiaozuzu · Aug 23, 2013 · 3010 views
    This topic created in 4823 days ago, the information mentioned may be changed or developed.
    写后端 app 的时候,经常会写 rest api 给手机用,render template 给主页,以及 admin 页面,中间业务逻辑层会有很多的重复地方,大家都是如何处理的呢?
    4 replies  •  1970-01-01 08:00:00 +08:00
    fangzhzh
    fangzhzh
    Aug 24, 2013 via Android
    1
    中间件针对业务 而不是产品
    humiaozuzu
    humiaozuzu
    OP
    Aug 24, 2013
    2
    notedit
    notedit
    Aug 24, 2013
    3
    把数据层抽象出来
    awebird
    awebird
    Aug 25, 2013
    4
    前后分离, 把render template这个过程逐步改写成手机调用api的方式
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1355 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 17:11 · PVG 01:11 · LAX 09:11 · JFK 12:11
    ♥ Do have faith in what you're doing.