humiaozuzu
V2EX  ›  问与答

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

  •  
  •   humiaozuzu · Aug 23, 2013 · 2920 views
    This topic created in 4731 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
        1
    fangzhzh  
       Aug 24, 2013 via Android
    中间件针对业务 而不是产品
    humiaozuzu
        2
    humiaozuzu  
    OP
       Aug 24, 2013
    notedit
        3
    notedit  
       Aug 24, 2013
    把数据层抽象出来
    awebird
        4
    awebird  
       Aug 25, 2013
    前后分离, 把render template这个过程逐步改写成手机调用api的方式
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1264 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 17:24 · PVG 01:24 · LAX 10:24 · JFK 13:24
    ♥ Do have faith in what you're doing.