Tamagotchi Uni, the primary mannequin within the Tamagotchi sequence to be outfitted with wi-fi connectivity, is now obtainable. This new mannequin permits Tamagotchi to attach on to the web and work together with different distinctive Tamagotchi from all over the world. BANDAI CO., LTD., the corporate liable for product improvement and gross sales, adopted AWS IoT to appreciate the idea of worldwide interconnected Tamagotchi, enabling customers to work together with one another.
On this put up, we share how BANDAI CO., LTD. and their cloud improvement companion, Phoenisys, Inc., used AWS to attach and handle thousands and thousands of Tamagotchi gadgets. Specifically, it was essential to carry out distant updates, utilizing the Jobs function of AWS IoT Gadget Administration to distribute the newest firmware throughout all Tamagotchi gadgets with out inflicting any delays for patrons.
What are Tamagotchi Uni?
Â
The Tamagotchi is handheld digital pets that customers can nurture. Over 91 million models have been offered worldwide since inception in 1996 and have been appreciated by folks of all ages. The newest mannequin in Tamagotchi sequence, Tamagotchi Uni, was launched worldwide on July 15, 2023. This new mannequin permits Tamagotchi to attach on to the web and work together with different distinctive Tamagotchi from all over the world. The imaginative and prescient for the product is to create a world the place Tamagotchi followers the world over can talk with one another utilizing their very own nurtured Tamagotchi.
Tamagotchi Uni evolutions
With wi-fi connectivity, Tamagotchi customers can discover the Tamaverse, a metaverse of Tamagotchi, and meet Tamagotchi nurtured by customers all over the world. Moreover, Tamagotchi Uni are straight related to the cloud, permitting customers to constantly obtain new occasions and gadgets for distribution. Connectivity additionally permits customers to concurrently compete and cooperate with one another. These functionalities are attainable as a consequence of AWS IoT Core, which presents dependable cloud connectivity throughout many AWS Areas.
Safe connectivity with AWS IoT and a serverless structure
To make Tamagotchi Uni IoT-enabled, BANDAI established the next three key objectives:
- Implementing safe connections
- Scaling and load-balancing assets to accommodate over 1 million connections worldwide
- Optimizing operational prices
The Tamagotchi answer has been applied on an AWS serverless structure utilizing AWS IoT.

AWS structure for Tamagotchi Uni
This part briefly describes how AWS providers are used within the structure to assist enhance the reliability and cost-effectiveness of creating, working, and managing Tamagotchi Uni.
AWS IoT Core
Tamagotchi Uni use AWS IoT Core for authentication, connection, and messaging. The Gadget Shadow function is used to handle the state of every Tamagotchi Uni system, utilizing the delta of the shadow as a flag to retrieve distributed gadgets and content material. This ensures environment friendly communication between the system and AWS, facilitating seamless interplay.
AWS IoT Gadget Administration
The event staff anticipated that managing the rising provide of Tamagotchi Uni gadgets would turn out to be difficult. Subsequently, they used AWS IoT Gadget Administration to index the in depth Tamagotchi Uni fleet and create dynamic teams primarily based on the state of every system, facilitating environment friendly over-the-air (OTA) updates.
FreeRTOS
The Tamagotchi Uni system software program that connects to AWS runs on FreeRTOS, which minimizes the quantity of assets and code required to implement device-to-cloud communication for environment friendly system improvement.
AWS Lambda
Tamagotchi Uni use AWS Lambda for processing duties, delivering new bulletins, and registering belongings.
Amazon DynamoDB
Tamagotchi Uni use Amazon DynamoDB as a completely managed, serverless, key-value NoSQL database that runs high-performance purposes at any scale.
Amazon Easy Storage Service (Amazon S3)
Tamagotchi Uni use Amazon S3 as an object storage service that provides industry-leading scalability, knowledge availability, safety, and efficiency. Every of those knowledge shops are used to handle the varied assets inside Tamagotchi Uni.
Amazon Timestream
Tamagotchi Uni use Amazon Timestream to build up historic knowledge of person’s actions like downloading gadgets and extra content material.
Challenges in firmware distribution to all gadgets
The staff will use AWS IoT Jobs to replace Tamagotchi Uni with new video games and content material via periodic firmware updates. Whereas Jobs makes firmware updates straightforward and safe, the staff discovered that the default most variety of job executions per hour (1,000 models per minute) would lead to an excessive amount of time required to finish updates for all the gadgets.
The prolonged time would trigger delays and an inconsistent expertise for patrons. Some prospects may be taught that different customers received the replace and are having fun with the brand new content material whereas their very own system is outdated. For purchasers desirous to take pleasure in the brand new content material as quickly as attainable, the extended look ahead to the replace may end up in important stress.
Whereas it’s attainable to regulate the quota for the utmost variety of job executions that may be delivered per minute, there are limits.
Overcoming challenges with large-scale firmware updates
To reduce wait occasions, the staff modified the firmware replace course of in order that the replace could be executed when the client agreed to the replace. Because the replace course of requires human intervention, it can’t be carried out on all gadgets on the identical time. Contemplating that the timing of server inquiries might range relying on the client’s taking part in surroundings and time variations, the staff decided that it wouldn’t be essential to distribute the replace to all gadgets on the identical time. The brand new coverage prioritizes ordered distribution to prospects who make replace inquiries.
To technically notice the brand new coverage, the staff designed job supply as a steady job, with the job goal being dynamic factor teams relatively than particular person issues (see following determine). Dynamic factor teams are a function of AWS IoT Gadget Administration that means that you can set search situations for issues registered in AWS IoT when creating a gaggle. On this case, when issues are added to the dynamic factor group after the job is created, the job is delivered instantly to these newly added issues. This permits for quicker and extra environment friendly job supply, particularly delivering to the gadgets that meet the set situations.

The mechanism and ingenuity of the firmware distribution for Tamagotchi
The fleet indexing function robotically searches for issues that meet the situations and dynamically provides them to the factor group.
On this undertaking, the question situations for the dynamic factor group had been configured into the next 4 situations:
- The firmware model of
shadow.reported
is greater than the preliminary model - The firmware model of
shadow.reported
isn’t the newest model to be distributed - The firmware model of
shadow.desired
is the newest model to be delivered connectivity.timestamp
is larger than the desired UNIX epoch milliseconds
All 4 of those situations had been mixed with the logical operator AND.
Trying to find related gadgets
Noteworthy among the many question situations is using the connection timestamp (connectivity.timestamp
) of the system as a fourth search situation. This permits the job to focus on solely these gadgets which have a confirmed connection file. The connection standing (connectivity.related:true
) is also included within the question. Nevertheless, if the connection standing is used as a situation, the system can be faraway from the dynamic group when the Tamagotchi Uni restarts after an replace and the firmware picture and job info can’t be verified. Because of this the staff determined to make use of the connection timestamp as a situation as a substitute of the connection standing. The UNIX epoch milliseconds within the situation is ready to 1 hour earlier than the dynamic group creation timing. This strategy enabled us to effectively distribute updates by including them to a dynamic group primarily based on the order of consumers’ inquiries relating to the provision of updates.
Managing firmware variations with Gadget Shadow
The primary three talked about search situations use Gadget Shadow. Tamagotchi Uni use Gadget Shadow for the administration of replace flags for all belongings, together with updates and extra content material. By enabling gadgets to retrieve knowledge solely when there may be an replace within the shadow, it helps cut back the frequency of communication. Tamagotchi Uni additionally use Gadget Shadow to handle firmware variations and search situations in dynamic group queries 1-3, particularly, the shadow.desired
situation in question 3. Nevertheless, this strategy introduced a problem. To inform updates for therefore many focused gadgets, it could require updating the shadow of every system individually. Consequently, updating the shadows of all gadgets took a major period of time, which impacted the distribution pace.
As an answer, the staff determined to replace the shadows in parallel. The next procedures and configurations helped to cut back the replace time considerably:
- Creating an SQS queue to observe the progress standing of dynamic group creation after it has been executed.
- Polling monitoring the progress standing of the dynamic group rebuild with up to date question situations.
- When all goal issues turn out to be members of the dynamic group and the rebuild completes, retrieve the issues which have turn out to be members in batches of as much as 250 gadgets at a time, and problem a message to the SQS queue requesting a shadow replace.
- When a message is issued to the SQS queue, a Lambda is named in parallel to replace the shadow.
This circulation improved the person expertise by effectively and shortly distributing updates within the order of buyer inquiry.
Testing system efficiency
Lastly, as a part of load testing, BANDAI created numerous simulated gadgets that emulated the entry conduct of Tamagotchi Uni and had been in a position to confirm the sleek operation and efficiency of the replace. The take a look at allowed the staff to really feel assured that efficiency could be secure and might be maintained, even below large-scale entry.
Conclusion
Tamagotchi Uni, the primary mannequin within the Tamagotchi sequence to function wi-fi connectivity, have created a world the place Tamagotchi followers can really feel related no matter gender, age, or nationality. This put up offered an in depth view on how Tamagotchi Uni use AWS to realize safe and dependable connectivity and shortly ship new content material updates with out leaving prospects ready.
Japanese model of this weblog put up might be discovered right here.
Authors