A Developer Day: HarmonyOS OBS Album Case & AI DevSpace

举报
yd_287911698 发表于 2026/11/10 11:59:43 2026/11/10
【摘要】 Today's developer diary: checking in for day 2, reading the HarmonyOS OBS cloud album case, and trying AI Shell in the AI DevSpace trial.

Today (Nov 10, 2026) I worked through the Huawei Cloud developer daily tasks. This is a short note on what I actually did and saw — no more, no less.

Check-in

I signed in on the Grow Center at developer.huaweicloud.cn/grow. This is my second consecutive day, and the check-in added 10 points to my account (longer1996).

A HarmonyOS case: a personal cloud album on OBS

From the HarmonyOS Development Practice Center I opened the case “用OBS打造个人云相册app” and read it through. The case builds a HarmonyOS app that backs up photos and videos from the device into the user’s own OBS bucket and lets you browse the cloud objects. A few things that stood out to me:

  • It uses OBS Header signature authentication, and the docs point out that the keys are saved in plaintext in the app sandbox preferences, so they are only for teaching and debugging.
  • Backup runs file by file with progress, and completed files are skipped on later runs based on target, MD5, and the cloud ETag.
  • A single upload or preview is limited to 64 MiB, and the preview disk cache is capped at 128 MiB.
  • The case is explicit that it does not do background scheduled backup or byte-level resumable upload. I like that honesty: it tells you where the boundary is before you build on it.

I have not run the sample end to end yet — I read the set-up steps (creating a private OBS bucket and getting the four app settings: AK, SK, Endpoint, and bucket name) — so this is a reading note, not a run report.

AI DevSpace (trial version)

I entered the AI DevSpace trial from the Grow Center. It starts a fresh container with about three hours left, and the trial container is released when time runs out, so files are not kept. In AI Shell I asked for a recommendation for a lightweight web app deployment plan. The answer compared four paths: OBS static website hosting (cheapest for a pure front end), ECS with Nginx (the classic choice when you need a backend runtime and full OS control), CCI serverless containers (pay for actual run time, no cluster to manage), and FunctionGraph (event-driven serverless APIs billed per call). For a personal site, OBS hosting costs almost nothing; for anything with a backend, the real choice is between a small ECS and CCI.

One thing that did not work today

The task list also asks for starring a HarmonyOS case repository on GitCode. I tried for harmony-practice-center/HarmonyOS-APP-OBSCloudAlbum, but the Huawei ID authorization step shows a slider puzzle, and after many careful attempts it kept being rejected, so I stopped rather than forcing it. I will come back to it another day.

Closing

Points I have seen credited so far today: check-in +10 and case browsing +10. The AI DevSpace visit and this article are still to be confirmed in the points history. Small steps, but the habit is the point: one case read, one tool tried, one note written.

【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0)

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。