{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"最近兩年用戶增長在互聯網行業受到越來越多的關注,各大互聯網公司都會成立專業團隊做用戶增長,閒魚也不例外。我們常提到的用戶增長概念,其實包含兩層含義。第一層是用戶數量,用戶數量的增長有效的手段包括定位潛在客戶、擴展優質渠道、提升漏斗轉化效率等;第二層是用戶質量,這個層面我們更關心用戶的價值和留存。而爲了用戶數量和質量,產品上需要足夠多的玩法覆蓋所有用戶,對於同一類用戶,產品也會希望多個玩法賽馬,所以增長玩法的特點就是豐富多樣又靈活多變。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/73\/73b0b28516f80ecb65cca7963bcb9459.png","alt":"圖片","title":"null","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"一般情況下技術同學最不願意遇到這種業務需求,因爲如果case by case的開發,會導致項目週期長,無法快速應對玩法變化而加班。因此需要將各類玩法總結抽象業務模型,沉澱通用基礎能力,降低玩法開發成本,閒魚用戶增長在最近半年進行了一些摸索實踐,接下來將從整體和具體玩法來闡述如何針對增長玩法做抽象和沉澱。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"閒魚用戶任務體系"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"首先從整體來看,增長玩法繁多且多變,但也有一定規律,包括以下特徵:"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"who:投放給指定人羣"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"how:玩法有限定條件和完成的時效性"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"where:依賴業務事件作爲觸發計算進度"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"what:用戶完成有一定權益獎勵"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"extend:擴展能力,玩法可能會有周期,在子節點需要通知用戶"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"通過對玩法的歸納,我將增長玩法定義爲用戶任務,通過定義任務的生命週期,將增長玩法中共通的邏輯沉澱爲系統能力,具體玩法在任務生命週期節點開發定製邏輯,這套體系就是閒魚用戶任務體系。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/43\/4306e0170a796c2914ee0f3ad593e851.png","alt":"圖片","title":"null","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"從圖中可以看到系統中有兩類角色:"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"發佈者:即任務系統管理員,負責定義和管理任務"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"參與者:即閒魚用戶,用戶通過渠道收到任務,完成任務並獲取獎勵"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"而任務的生命週期分爲以下幾個節點:"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務管理"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務管理即管理任務元數據配置,包含任務完成條件和完成權益獎勵。任務管理還會維護用戶級別任務實例,記錄任務實例進度、狀態等信息。"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務投放"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務投放解決的是投放給指定人羣的問題,目前系統支持按照一定規則圈人投放,並且在圈人後將任務詳情通知目標用戶,引導用戶查看和完成任務。"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務追蹤"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務追蹤負責監聽用戶行爲事件,觸發任務進度計算,更新維護任務進度和狀態。任務追蹤模塊本身會監聽業務系統的通用事件,比如發佈商品、瀏覽詳情和購買支付等全域通用事件,也支持業務個性化定製事件。任務追蹤負責隱藏不同事件的差異。"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務結算"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務結算統一監控任務實例的進度和狀態變更通知,基於任務實例實時信息判斷任務是否達到完成條件,並將任務完成信息同步給任務獎勵節點,以此將任務追蹤與任務獎勵節點解耦。"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務獎勵"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"任務獎勵負責不同類型權益,支持權益剩餘庫存檢查和業務自定義檢查規則。在滿足發放條件後將權益發放給用戶,完成一次任務流程。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"閒魚用戶任務體系與業務無關,是從增長玩法整體歸納抽象,定義任務生命週期,沉澱玩法通用能力的任務系統。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"閒魚逛賺玩法"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"上一節介紹的是基於增長玩法整體抽象的任務體系,這一節主要介紹具體增長玩法如何通過任務體系擴展支持。以閒魚逛賺玩法來說,逛賺玩法爲週期類任務,週期爲7天,用戶在週期內每天可通過瀏覽10個商品完成當天任務,任務完成後領取現金紅包獎勵。在指定的第2天、第5天、第7天有特殊獎勵,吸引用戶連續參與活動,提升活躍和留存。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/23\/23f934e19e99be6b10a0eea043db8d03.png","alt":"圖片","title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"分層架構"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在閒魚用戶任務體系上擴展支持逛賺玩法,任務體系將逛賺玩法拆分的比較清晰,逛賺玩法強調週期和特殊節點獎勵。分層架構如下:"}]},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/2f\/2f469b690153b42291f58bef98763d68.png","alt":"圖片","title":"null","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"PS:基礎產品層爲閒魚業務系統,底層依賴層爲阿里內部封裝中間件服務,在阿里雲或開源基本都有對應產品。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"通過具體逛賺玩法需求,我在任務體系之下抽象了三塊領域服務:週期域、權益域和排期域。"}]},{"type":"bulletedlist","content":[{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"週期域:週期域負責管理任務週期,需要支持靈活配置週期和特殊節點,支持一定動態化能力。這塊在技術選型上最終選擇用MVEL表達式引擎,通過表達式配置和計算特殊節點的權益獎勵"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"權益域:權益域負責對接各種類型權益,計算剩餘庫存,保證不會超發和資損"}]}]},{"type":"listitem","attrs":{"listStyle":null},"content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"排期域:對玩法時長、排期進行管理"}]}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"領域服務內部基於策略模式實現,比如週期域分爲滾動週期和滑動週期,計數模式分爲固定、連續和累計,都是週期模式的一種實現;權益域內部細分爲積分權益、紅包權益等。"}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"邏輯實現"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"基於分層架構的邏輯實現如下:"}]},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/64\/64ec5d027b22ad25bf5ac4bde6addfeb.png","alt":"圖片","title":"null","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"玩法服務是通過模板模式封裝的任務生命週期,對修改關閉,對擴展放開的方式定義瞭如下節點:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"•開始任務"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"•加入任務"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"•處理任務"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"•完成任務"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"•關閉任務"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"•查詢任務進度"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"每個節點會有任務級別的通用實現,並預留擴展點,逛賺玩法通過實現擴展點的方式定製功能,主流程通過任務體系串聯,實現了業務定製和開發效率在一定程度上的兼顧。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"總結展望"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"閒魚用戶增長團隊在最近半年發力增加大量玩法覆蓋閒魚用戶羣體,業務和技術上都在探索如何快速支持玩法快速開發配置上線,提高研發效率,支持業務快速試錯和實驗,閒魚用戶玩法體系爲技術側對於業務玩法的抽象總結和增長方法論沉澱的一部分,歡迎感興趣的同學加入我們一起建設閒魚用戶增長技術體系。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"本文轉載自:閒魚技術(ID:XYtech_Alibaba)"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"原文鏈接:"},{"type":"link","attrs":{"href":"https:\/\/mp.weixin.qq.com\/s\/V7CnGHz4PmnEqkM0BwY0xg","title":"xxx","type":null},"content":[{"type":"text","text":"輕鬆應對增長玩法的72變"}]}]}]}