humiaozuzu
V2EX  ›  问与答

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

  •  
  •   humiaozuzu · Aug 23, 2013 · 2922 views
    This topic created in 4733 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   ·   2605 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:36 · PVG 09:36 · LAX 18:36 · JFK 21:36
    ♥ Do have faith in what you're doing.