Youku recorded gross revenues of 200 million RMB in 2009. In January 2010, Youku and competitor Tudou announced the creation of a video broadcasting exchange network, under which Youku and Tudou will cross-license professionally produced video content. Later that year, Youku became the sole online video provider embedded in the China Edition of Mozilla Firefox. In 2008, Youku partnered with Myspace in China. The company initially emphasized user-generated content but has since shifted its focus to professionally produced videos licensed from over 1,500 content partners.Īs of January 2010, was ranked #1 in the Chinese Internet video sector according to Internet metrics provider CR-Nielsen, (keeping in mind that YouTube is banned in China). Major investors include Brookside (Bain) Capital, Sutter Hill Ventures, Maverick Capital, and Chengwei Ventures. In December 2009, the company announced that it had raised a total of $110 million in private equity funding. In 2007, the company received $25 million in funding from venture capitalists. A beta version of the site was launched with limited geographic reach in June 2003, and the website was formally launched in December 2003. Initial funding for the site came from 1Verge, a fund raised by him. Youku was founded by Victor Koo (Gu Yongqiang), former President of Chinese Internet portal Sohu. However, Youku's domination in the Chinese market was toppled by its competitor Baidu's iQiyi in 2015. Youku is one of China's top online video and streaming service platforms, along with iQiyi, Sohu, LeTV, Tencent Video, PPTV, 56.com and Funshion. In 2014, it had more than 500 million monthly active users, with 800 million daily video views. On March 12 2012, Youku reached an agreement to merger with Tudou in a stock-for-stock transaction, the new entity being named Youku Tudou Inc. Youku has its headquarters in the Sinosteel Plaza in Haidian District, Beijing. It operates as a subsidiary of Alibaba Group Holding Limited. 'excellent (and) cool'), is a video hosting service based in Beijing, China. (formerly Youku Inc.), doing business as Youku ( Chinese: 优酷 lit. Therefore, even if the HTTP Function gets the request twice (theoretically speaking), you won't get duplicate entries in Firestore because the same unique key was used to create the document.(required to upload and/or comment on videos) Notice how t() is used to specify this unique key. sensor ID & timestamp) which is used as the key to save to Firestore. In the idempotent example below, a request contains a unique value (i.e. Then you'll see an example of idempotency for background functions. Let's first examine idempotent functions by exploring HTTP-triggered functions.
#Anti blog acfun how to
If it is not possible to achieve idempotency, it's important to have a plan on how to handle duplicate invocations.
#Anti blog acfun code
In Serverless, it is important to write your code with idempotency in mind. Or if you cannot write your Function in an idempotent manner, you have a plan on how to handle these additional calls.You need to test that you can call your Function multiple times with the same input data that does not change the initial result.A background Function is guaranteed to be invoked at least once, which implies the following: How to investigate:įor background functions, it is important to be familiar with execution guarantees. In this context, idempotent means that you should be able to call your Function multiple times with the same input data and the result of the initial call does not change. For example, your Function saves duplicate entries to Firestore for a single request. You noticed that your Cloud Function executes multiple times for a single request. This article is the first post in the series. We refer to these as "anti-patterns" and offer you ways to avoid them.
#Anti blog acfun series
Editor's note: Over the next several weeks, you'll see a series of blog posts focusing on best practices for writing Google Cloud Functions based on common questions or misconceptions as seen by the Support team.