Chapterبەش 3 · Lectureوانە 3.3

Mobile Cloud and Backend-as-a-Serviceهەورەژمێرکاریی مۆبایل و BaaS

Why apps need a back end in the cloud: cloud computing in one screen, mobile cloud computing, the six jobs of a back end, Backend-as-a-Service and its trade-offs, and Firebase as a current example (products, databases, Analytics), with the lecture's outdated facts corrected.

بۆچی پێویستیان بە لە هەوردا هەیە: لە یەک شاشەدا، ، شەش کارەکەی ، و قازانج و زیانەکانی؛ هەروەها Firebase وەک نموونەیەکی ئێستا (بەرهەمەکان، ، Analytics)، لەگەڵ ڕاستکردنەوەی زانیارییە کۆنەکانی وانەکە.

18 min read20 خولەک خوێندنەوە · 17 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Explain cloud computing and mobile cloud computing, and why apps keep shared data on servers.
  • Name the main jobs of a back end and compare building your own with using a BaaS.
  • Describe Firebase's current products, its databases and Google Analytics for Firebase correctly.
  • Weigh the trade-offs of BaaS: speed against security rules, cost and vendor lock-in.
  • و ڕوون بکەیتەوە و بۆچی هاوبەش لەسەر هەڵدەگرن.
  • کارە سەرەکییەکانی ناو ببەیت و دروستکردنی هی خۆت لەگەڵ بەکارهێنانی بەراورد بکەیت.
  • بەرهەمە ئێستاکانی Firebase، و ⁦Google Analytics⁩ بۆ Firebase بە دروستی وەسف بکەیت.
  • قازانج و زیانەکانی بکێشیت: خێرایی بەرامبەر یاساکانی ، تێچوو و .

Where does the app's data live?دراوەی ئەپەکە لە کوێ دەژی؟

Back to Hana's bakery. Customers order bread on their phones, and every order must appear on the tablet in the bakery. When a customer buys a new phone, her order history must still be there. When Hana changes a price, every customer must see the new price at once.

با بگەڕێینەوە بۆ نانەواخانەکەی هانا. کڕیاران لەسەر مۆبایلەکانیان داوای نان دەکەن و هەر داوایەک دەبێت لەسەر نانەواخانەکە دەربکەوێت. کاتێک کڕیارێک مۆبایلێکی نوێ دەکڕێت، دەبێت مێژووی داواکانی هێشتا لەوێ بێت. کاتێک هانا نرخێک دەگۆڕێت، دەبێت هەموو کڕیارێک یەکسەر نرخە نوێیەکە ببینێت.

None of this can live on one phone. The app needs a back end: computers somewhere else that keep the shared data and do the shared work. Today that back end usually runs in the cloud.

هیچ کام لەمانە ناتوانن لەسەر یەک مۆبایل بژین. پێویستی بە : کۆمپیوتەرگەلێک لە شوێنێکی تر کە هاوبەش هەڵدەگرن و کارە هاوبەشەکان دەکەن. ئەمڕۆ زۆرجار لە هەوردا کار دەکات.

This lesson covers cloud computing in one screen, mobile cloud computing, what a back end does, Backend-as-a-Service (BaaS), and Firebase as a real example.

ئەم وانەیە باسی ئەمانە دەکات: لە یەک شاشەدا، ، چی دەکات و ؛ هەروەها Firebase وەک نموونەیەکی ڕاستەقینە.

Cloud computing in one screenهەورەژمێرکاری لە یەک شاشەدا

Definitionپێناسە

Using computing services, such as storage, , and , over the instead of on your own computer. You pay only for what you use, and the provider looks after the machines.

بەکارهێنانی خزمەتگوزارییەکانی کۆمپیوتەرە، وەک هەڵگرتن، ، و ، لە ڕێگەی لە جیاتی کۆمپیوتەرەکەی خۆت. تەنها پارەی ئەوە دەدەیت کە بەکاری دەهێنیت و دابینکەرەکە ئاگاداری ئامێرەکان دەبێت.

Cloud computing is the delivery of computing resources over the internet ("the cloud"): storage, processing power, databases, networking, analytics, artificial intelligence and ready-made software. You use them on demand and pay for what you use. The real computers sit in a 's data centres.

گەیاندنی سەرچاوەکانی ژمێرکارییە لە ڕێگەی («هەور»): ، توانای ، ، ، ، و ئامادە. کاتی پێویست بەکاریان دەهێنیت و تەنها پارەی ئەوە دەدەیت کە بەکاری دەهێنیت. کۆمپیوتەرە ڕاستەقینەکان لە ، کە هی .

The neighbourhood generatorمۆلیدەی گەڕەک

Many families in Kurdistan take a few amperes from the neighbourhood generator and pay each month for what they use, instead of buying a big generator. Cloud computing is the same idea: you rent storage and processing from a provider instead of buying and running your own servers.

زۆر خێزان لە کوردستان لە جیاتی کڕینی مۆلیدەیەکی گەورە، چەند ئەمپێرێک لە مۆلیدەی گەڕەک وەردەگرن و هەموو مانگێک پارەی ئەوە دەدەن کە بەکاری دەهێنن. هەمان بیرۆکەیە: و لە دابینکەرێک بەکرێ دەگریت لە جیاتی ئەوەی خۆت بکڕیت و بەڕێوەیان ببەیت.

Where the analogy stops workingسنووری ئەم نموونەیە

Unlike electricity, your data is private: you must trust the provider with it. And without the internet you cannot reach the cloud.

بە پێچەوانەی کارەباوە، تایبەتە: دەبێت متمانە بە دابینکەرەکە بکەیت. هەروەها بەبێ ناتوانیت بگەیتە هەور.

The full picture (the NIST definition, IaaS, PaaS and SaaS) is in Cloud Computing; cloud databases are in what a cloud database is. This lesson adds the mobile side.

وێنە تەواوەکە (پێناسەی NIST، ، و ) لە وانەی هەورەژمێرکاریدایە؛ لە وانەی بنکەدراوەی هەوری چییە؟دا باس کراون. ئەم وانەیە لایەنی مۆبایل زیاد دەکات.

Video: a short Kurdish video on what the cloud is plays in Cloud Computing.

ڤیدیۆ: ڤیدیۆیەکی کوردیی کورت دەربارەی ئەوەی هەور چییە لە هەورەژمێرکاریدایە.

Quick checkپشکنینی خێراWhich sentence describes cloud computing?کام ڕستە وەسفی دەکات؟

Mobile cloud computingهەورەژمێرکاریی مۆبایل

Definitionپێناسە

Using for mobile : the heavy work and the stay on cloud , and the phone shows the results. Users can reach the same data from any device and any place.

بریتییە لە بەکارهێنانی بۆ مۆبایل: کارە قورسەکان و لەسەر هەوری دەمێننەوە و مۆبایلەکە ئەنجامەکان پیشان دەدات. بەکارهێنەران دەتوانن لە هەر ئامێرێک و هەر شوێنێکەوە دەستیان بە هەمان دراوە بگات.

Mobile cloud computing (MCC) is the method of using cloud technology to deliver mobile apps. Modern customers expect to reach a company's website and apps remotely, from anywhere and at any time, and the cloud makes that possible.

⁦(MCC)⁩ ڕێگای بەکارهێنانی تەکنەلۆجیای هەورە بۆ گەیاندنی مۆبایل. کڕیارانی ئەمڕۆ چاوەڕێ دەکەن لە دوورەوە، لە هەر شوێنێک و لە هەر کاتێکدا، بگەنە و کۆمپانیایەک و هەور ئەمە دەکاتە شتێکی گونجاو.

  • The phone's limits matter less. A phone has limited storage, processing power and battery. Data-heavy work can run on cloud servers, and the phone shows the result.
  • The same data on every device. Notes written on the phone appear on the laptop, because both read the copy in the cloud.
  • Nothing is lost with the phone. Photos and messages backed up in the cloud survive a broken or lost phone.
  • Shared work in one place. Orders, chats and scores from many users meet on the server.
  • سنوورەکانی مۆبایل کەمتر گرنگ دەبن. مۆبایل ، توانای و پاتریی سنووردارە. کاری قورسی دەتوانێت لەسەر هەور بکرێت و مۆبایلەکە ئەنجامەکە پیشان دەدات.
  • هەمان لەسەر هەموو ئامێرێک. تێبینییەک کە لەسەر مۆبایل نووسرابێت لەسەر لاپتۆپیش دەردەکەوێت، چونکە هەردووکیان کۆپییەکەی ناو هەور دەخوێننەوە.
  • لەگەڵ مۆبایلەکەدا هیچ لەدەست ناچێت. وێنە و نامەکان کە لە هەوردا بۆ کراوە، ئەگەر مۆبایلەکە بشکێت یان ون بێت دەمێننەوە.
  • کاری هاوبەش لە یەک شوێندا. داوا، گفتوگۆ و خاڵی چەندین لەسەر کۆ دەبنەوە.
Quick checkپشکنینی خێراWhy do photo apps back up pictures to the cloud?بۆچی وێنە وێنەکان لە هەوردا دەکەن؟

What a back end doesبەشی پشتەوە چی دەکات

The part of the app on the phone, which draws the screens and takes the taps, is the . The part on servers is the . A typical back end does six jobs:

ئەو بەشەی کە لەسەر مۆبایلە، شاشەکان دەکێشێت و دەستلێدانەکان وەردەگرێت، . ئەو بەشەی لەسەر . لە ئاساییدا شەش کار دەکات:

On the left, a phone labelled Front end: the app on the phone, which shows the screen and takes taps. A request arrow goes to the right and a data arrow comes back. On the right, a large box labelled Back end (on servers) holds six jobs: store shared data (database); know who the user is (authentication); keep users' files (photos, videos); run trusted code (prices, payments, rules); send notifications ("Your order is ready"); measure and report (analytics, crashes).لە لای چەپ مۆبایلێک بە ناونیشانی بەشی پێشەوە: ئەپەکە لەسەر مۆبایل، کە شاشە پیشان دەدات و دەستلێدان وەردەگرێت. تیرێکی داواکاری بەرەو ڕاست دەچێت و تیرێکی دراوە دەگەڕێتەوە. لە لای ڕاست سندوقێکی گەورە بە ناونیشانی بەشی پشتەوە (لەسەر ڕاژەکارەکان) شەش کاری تێدایە: دراوەی هاوبەش هەڵدەگرێت (بنکەدراوە)؛ دەزانێت بەکارهێنەر کێیە (پشتڕاستکردنەوەی ناسنامە)؛ فایلەکانی بەکارهێنەران هەڵدەگرێت (وێنە، ڤیدیۆ)؛ کۆدی متمانەپێکراو کارا دەکات (نرخ، پارەدان، یاسا)؛ ئاگادارکردنەوەکان دەنێرێت («داواکەت ئامادەیە»)؛ پێوانە و ڕاپۆرت (شیکاریی دراوە، لەکارکەوتن).
The front end shows and asks; the back end stores, checks and sends. پیشان دەدات و دەپرسێت؛ هەڵدەگرێت، دەپشکنێت و دەنێرێت.CêIT

Why not do all this on the phone? Because the data must be shared, and because the phone cannot be trusted: anyone can change an app on their own phone, so prices, payments and rules must be checked on a server.

بۆچی هەموو ئەمانە لەسەر مۆبایل ناکرێن؟ چونکە دەبێت هاوبەش بێت و چونکە متمانە بە مۆبایل ناکرێت: هەر کەسێک دەتوانێت لەسەر مۆبایلی خۆی بگۆڕێت، بۆیە نرخ، پارەدان و یاساکان دەبێت لەسەر بپشکنرێن.

The traditional way is to build it yourself: you write an (a set of addresses the app calls), run your own servers, set up the database, keep everything secure and updated, and add servers when the number of users grows. See what an API is and the HTTP request and response.

ڕێگای کۆن ئەوەیە خۆت دروستی بکەیت: دەنووسیت (کۆمەڵێک ناونیشانی کە بانگیان دەکات)، خۆت بەڕێوە دەبەیت، دادەمەزرێنیت، هەموو شتێک پارێزراو و نوێ دەهێڵیتەوە و کاتێک ژمارەی زیاد دەبێت زیاد دەکەیت. API چییە و داواکاری و وەڵامی HTTP ببینە.

Quick checkپشکنینی خێراWhy must the price of an order be checked on the server and not only in the app?بۆچی نرخی داوایەک دەبێت لەسەر بپشکنرێت نەک تەنها لەنێو ؟

Frontend, API, Backend and Database explainedTamara Jost · Englishئینگلیزی · 142K viewsبینین · 3.6K likesلایک

A short drawing-based explanation of the front end, the back end, the API between them and the database behind them.

ڕوونکردنەوەیەکی کورت بە وێنە: ، ، کە لە نێوانیاندایە و کە لە پشتیانەوەیە.

Whole video: what the front end and back end each do.

هەموو ڤیدیۆکە: و هەریەکەیان چی دەکەن.

Backend-as-a-ServiceBaaS

Definitionپێناسە

A cloud service that gives an a ready-made : a , , file storage, and more, used through an instead of your own . Firebase is a BaaS.

خزمەتگوزارییەکی هەورییە کە ئامادە دەداتە : ، ، هەڵگرتنی فایل، و زیاتر، کە لە ڕێگەی بەکار دەهێنرێن نەک خۆت. Firebase نموونەیەکی BaaSـە.

A Backend-as-a-Service gives an app ready-made back-end services: a database, sign-in, file storage, notifications and more. The app talks to them through an , a library added to the app, so you do not write or run a server for these common jobs. Firebase, from Google, is a BaaS app development platform. Supabase, an open-source service built on the PostgreSQL database, is another example.

خزمەتگوزاریی ئامادەی دەداتە : ، ، ، و زیاتر. لە ڕێگەی قسەیان لەگەڵ دەکات، کە دەخرێتە نێو ، بۆیە بۆ ئەم کارە باوانە نانووسیت و بەڕێوەی نابەیت. Firebase، کە هی Googleـە، پەرەپێدانی لە جۆری . Supabase، خزمەتگوزارییەکی کە لەسەر PostgreSQL دروست کراوە، نموونەیەکی ترە.

The lecture shows Firebase's own picture of the difference. Traditionally, client apps call an HTTP API on your servers, and your servers talk to the database and the cloud. With Firebase, client apps use the Firebase SDK and talk to Firebase directly. The picture is called "Firebase and Flutter architecture", but it is the same for any client app: Android, iOS, web or Flutter.

وانەکە وێنەی خودی Firebase بۆ ئەم جیاوازییە پیشان دەدات. بە شێوەی کۆن، HTTP لەسەر خۆت بانگ دەکەن و قسە لەگەڵ و هەور دەکەن. لەگەڵ Firebase، Firebase بەکار دەهێنن و ڕاستەوخۆ قسە لەگەڵ Firebase دەکەن. ناوی وێنەکە «تەلارسازیی Firebase و Flutter»ـە، بەڵام بۆ هەموو وەک یەکە: Android، iOS، وێب یان .

An animation in five frames with two rows. Row 1, your own back end: App, then HTTP API (you write it), then Your server (you run, secure, update), then Database (you set it up); these three boxes are orange. Row 2, Backend-as-a-Service: App with an SDK inside, then one green box, the BaaS provider (for example Firebase) with database, sign-in, files and notifications; the provider runs the servers. A green dot (the request for today's orders) leaves the phone in both rows; in row 1 it passes the API and the server on its way to the database, in row 2 the SDK talks to the ready services. An orange dot (the data) comes back, and both apps get the same list. The last frame says: BaaS saves you building and running a server; the price is that you depend on one provider.
An animation in five frames with two rows. Row 1, your own back end: App, then HTTP API (you write it), then Your server (you run, secure, update), then Database (you set it up); these three boxes are orange. Row 2, Backend-as-a-Service: App with an SDK inside, then one green box, the BaaS provider (for example Firebase) with database, sign-in, files and notifications; the provider runs the servers. A green dot (the request for today's orders) leaves the phone in both rows; in row 1 it passes the API and the server on its way to the database, in row 2 the SDK talks to the ready services. An orange dot (the data) comes back, and both apps get the same list. The last frame says: BaaS saves you building and running a server; the price is that you depend on one provider.
One request, two kinds of back end: in row 1 you build and run three parts, in row 2 the provider runs them.یەک ، دوو جۆر : لە ڕیزی ١دا خۆت سێ بەش دروست دەکەیت و بەڕێوەیان دەبەیت، لە ڕیزی ٢دا دابینکەرەکە بەڕێوەیان دەبات.CêIT
Quick checkپشکنینی خێراWith a BaaS such as Firebase, how does the app reach the database?لەگەڵ وەک Firebase، چۆن دەگاتە ؟

Backend-as-a-ServiceBaaS

What you gain and what you give upچی بەدەست دەهێنیت و چی لەدەست دەدەیت

You gainبەدەستی دەهێنیتYou give up or must watchلەدەستی دەدەیت یان دەبێت ئاگاداری بیت
A working back end in days, not months. لە چەند ڕۆژێکدا کار دەکات، نەک چەند مانگێک.: your app is built around one provider's products, so moving away later is hard and expensive.: بە دەوری بەرهەمەکانی یەک دابینکەردا دروست کراوە، بۆیە دواتر جێهێشتنی قورس و گرانە.
No servers to run, patch or watch at night.هیچ نییە بەڕێوەی ببەیت، نوێی بکەیتەوە یان شەوان چاودێری بکەیت.Costs grow with users: free plans have limits, and above them you pay as you go.تێچوو لەگەڵ ژمارەی زیاد دەبێت: پلانە بێبەرانبەرەکان سنووریان هەیە و لە سەرووی ئەوانەوە دەکەیت.
Growth is handled by the provider ().گەشەکردن لەلایەن دابینکەرەکەوە بەڕێوە دەبرێت ().Less control over the server code and over where the data is stored.کۆنترۆڵی کەمتر بەسەر کۆدی و ئەو شوێنەی تێدا هەڵدەگیرێت.
Ready tools for sign-in, rules and abuse protection.ئامرازی ئامادە بۆ ، یاسا و پاراستن لە خراپ بەکارهێنان.A provider can retire a product, as Firebase did with Dynamic Links in 2025.دابینکەرێک دەتوانێت بەرهەمێک ڕابگرێت، وەک Firebase کە لە ٢٠٢٥ ⁦Dynamic Links⁩ـی ڕاگرت.
Quick checkپشکنینی خێراWhich risk is called vendor lock-in?کام مەترسی پێی دەوترێت ؟

Backend-as-a-ServiceBaaS

The rules are your jobیاساکان کاری خۆتن

Quick checkپشکنینی خێراWith a BaaS such as Firebase, what stops a stranger from reading your database?لەگەڵ وەک Firebase، چی ڕێگری لە کەسێکی نەناسراو دەکات کە بخوێنێتەوە؟

Firebase Security in 100 SecondsFireship · Englishئینگلیزی · 120K viewsبینین · 4.4K likesلایک

Firebase Security Rules in 100 seconds: the server checks every read and write; match points to a path and allow says who may do what.

یاساکانی ئاسایشی Firebase لە ⁦100⁩ چرکەدا: هەموو خوێندنەوە و نووسینێک دەپشکنێت؛ match ئاماژە بۆ دەکات و allow دەڵێت کێ دەتوانێت چی بکات.

Whole video (2:20, December 2020): the rules syntax it shows is unchanged today. Test rules in the Rules Playground and never open them to everyone.

هەموو ڤیدیۆکە (⁦2:20⁩، ساڵی ⁦2020⁩): ئەو یاسایانەی کە پیشانی دەدات، ئەمڕۆش هەر وەک خۆیەتی. یاساکان لە ⁦Rules Playground⁩ـدا تاقی بکەرەوە و هەرگیز بۆ هەمووان مەیانکەرەوە.

Firebase: an example of BaaSFirebase: نموونەیەکی BaaS

Firebase is a set of back-end cloud services and an app development platform from Google, trusted by millions of businesses around the world. It provides hosted back-end services such as a real-time database, cloud storage, authentication, crash reporting, machine learning, remote configuration and hosting, for apps on Android, iOS and Unity, and today also the web, Flutter and C++.

Firebase کۆمەڵێک خزمەتگوزاریی هەوریی و پەرەپێدانی لە Googleـەوە، کە ملیۆنان کۆمپانیا لە سەرانسەری جیهاندا متمانەی پێ دەکەن. خزمەتگوزاریی هۆستکراو دابین دەکات، وەک ، ، ، ڕاپۆرتی ، ، ڕێکخستنی دوور و ، بۆ لەسەر Android، iOS و Unity. ئەمڕۆ وێب، و ⁦C++⁩ـیش پشتگیری دەکرێن.

Firebase describes what it helps a team do:

Firebase باسی ئەوە دەکات کە یارمەتیی تیمێک دەدات چی بکات:

  • improve app quality in less time and with less effort;
  • make testing, triaging (sorting problems by how serious they are) and troubleshooting simpler;
  • keep users engaged with rich analytics, testing and messaging campaigns;
  • understand users and gather insights to support them better and keep them;
  • run experiments to test ideas and find new insights.
  • باشترکردنی کوالیتیی لە کاتێکی کەمتر و بە هەوڵێکی کەمتر؛
  • سادەکردنی ، ڕیزکردنی کێشەکان بەپێی گرنگییان و ؛
  • ڕاگرتنی بە ، و کەمپەینی نامەناردن؛
  • تێگەیشتن لە و کۆکردنەوەی زانیاری بۆ ئەوەی باشتر یارمەتییان بدەیت و بیانهێڵیتەوە؛
  • ئەنجامدانی تاقیکردنەوە بۆ پشکنینی بیرۆکەکان و دۆزینەوەی زانیاریی نوێ.

In the Flutter track, Firebase and Cloud Firestore connects a Flutter app to Firebase and reads and writes data in Firestore.

لە ڕێڕەوی Flutterـدا، Firebase و ⁦Cloud Firestore⁩ Flutter بە Firebase دەبەستێتەوە و لە Firestoreـدا دەخوێنێتەوە و دەنووسێت.

Quick checkپشکنینی خێراFirebase is described as a BaaS. What does that mean for the developer?Firebase وەک وەسف دەکرێت. ئەمە بۆ واتای چییە؟

Firebase in 100 SecondsFireship · Englishئینگلیزی · 972K viewsبینین · 30K likesلایک

What Firebase gives an app: sign-in, a real-time NoSQL database, security rules, cloud functions and hosting.

Firebase چی دەداتە : ، ، یاساکانی (Security Rules)، Cloud Functions و .

Whole video: a 2.5-minute tour of Firebase.

هەموو ڤیدیۆکە: گەشتێکی دوو خولەک و نیوی بە ناو Firebaseـدا.

Firebase: an example of BaaSFirebase: نموونەیەکی BaaS

Why teams choose Firebaseبۆچی تیمەکان Firebase هەڵدەبژێرن

The lecture's reasons, explainedهۆکارەکانی وانەکە، ڕوونکراوە
Reason in the lectureهۆکار لە وانەکەداWhat it meansواتاکەیWatch outئاگاداربە
Real-time database A change reaches every connected app within a moment.گۆڕانکارییەک لە ساتێکدا دەگاتە هەموو پەیوەستکراو.Design the data so apps download only what they need. وا دیزاین بکە کە تەنها ئەوە دابەزێنن کە پێویستیانە.
Fast and secureخێرا و پارێزراوGoogle's servers and tools such as App Check. Google و ئامرازی وەک ⁦App Check⁩.Secure only if your security rules are right.تەنها پارێزراوە ئەگەر یاساکانی خۆت ڕاست بن.
Crash reportsڕاپۆرتی Crashlytics collects crashes from users' phones.Crashlytics زانیاریی لە مۆبایلی کۆ دەکاتەوە.Fix the most common crashes first.سەرەتا باوترین جۆرەکانی چاک بکەرەوە.
Managed servicesخزمەتگوزاریی بەڕێوەبراوGoogle runs, updates and grows the servers.Google بەڕێوە دەبات، نوێیان دەکاتەوە و گەورەیان دەکات.You depend on Google's choices.پشت بە بڕیارەکانی Google دەبەستیت.
Easy to track usersئاسانیی بەدواداچوونی Analytics and Authentication show who uses what. و پیشان دەدەن کێ چی بەکار دەهێنێت.Respect privacy; collect only what you need.ڕێز لە بگرە؛ تەنها ئەوە کۆ بکەرەوە کە پێویستتە.
Free and easy to useبێبەرانبەر و ئاسانThe Spark plan has no cost; several products are free on every plan.پلانی Spark هیچ تێچووی نییە؛ چەند بەرهەمێک لە هەموو پلانێکدا بێبەرانبەرن.Bigger use needs the Blaze pay-as-you-go plan.بەکارهێنانی زیاتر پلانی Blaze پێویست دەکات ().
NoSQL or relational database یان Firestore and Realtime Database are NoSQL; SQL Connect is relational (Cloud SQL for PostgreSQL).Firestore و ⁦Realtime Database⁩ ؛ ⁦SQL Connect⁩ ⁦(Cloud SQL for PostgreSQL)⁩.Choose the model that fits your data.ئەو مۆدێلە هەڵبژێرە کە لەگەڵ دەگونجێت.
Supported platforms پشتگیریکراوAndroid, iOS, web, Flutter, Unity, C++.Android، iOS، وێب، ، Unity، ⁦C++⁩.Check that each product supports your platform.دڵنیابە کە هەر بەرهەمێک پشتگیریی دەکات.
Quick checkپشکنینی خێراThe lecture calls Firebase "fast and secure". When is a Firebase app really secure?وانەکە دەڵێت Firebase «خێرا و پارێزراوە». Firebase کەی بە ڕاستی پارێزراوە؟

Firebase: an example of BaaSFirebase: نموونەیەکی BaaS

NoSQL or relational? Firebase's databasesNoSQL یان پەیوەندیدار؟ بنکەدراوەکانی Firebase

Quick checkپشکنینی خێراWhich Firebase database is relational?کام Firebase پەیوەندیدارە؟

Firebase products todayبەرهەمەکانی Firebase ئەمڕۆ

The lecture shows two older pictures: a marketing grid ("Build better apps", "Improve app quality", "Grow your app") and the 2024 console with four groups: Build, Release & Monitor, Analytics and Engage. Firebase's product page now groups everything into two: Build (make the app work) and Run (keep it healthy and growing).

وانەکە دوو وێنەی کۆن پیشان دەدات: تۆڕێکی ڕیکلام («⁦Build better apps⁩»، «⁦Improve app quality⁩»، «⁦Grow your app⁩») و کۆنسۆڵی ٢٠٢٤ بە چوار گرووپەوە: Build، ⁦Release & Monitor⁩، Analytics و Engage. ئێستا لاپەڕەی بەرهەمەکانی Firebase هەموو شتێک دەکاتە دوو گرووپ: Build (بۆ کارپێکردنی ) و Run (بۆ چاودێری و گەشەپێدانی).

Firebase products today in two columns. Build, to make the app work: Authentication (user sign-in), Firestore (NoSQL document database), Realtime Database (NoSQL, live updates), SQL Connect (relational, PostgreSQL), Cloud Storage (users' photos and files), Cloud Functions (your own code on servers), Hosting and App Hosting (websites and web apps), App Check (blocks fake requests), Firebase AI Logic (Gemini AI inside apps), Extensions (ready-made add-ons), Phone Number Verification. Run, to keep the app healthy and growing: Crashlytics (crash reports), Google Analytics (how people use the app), Performance Monitoring (how fast the app is), Test Lab (tests on real devices), App Distribution (test versions to testers), Remote Config (change settings without an update), A/B Testing (compare two versions), Cloud Messaging (push notifications), In-App Messaging (messages inside the app). A note: Dynamic Links shut down on 25 August 2025; older pictures of Firebase still show it.بەرهەمەکانی Firebase ئەمڕۆ لە دوو ستووندا. Build، بۆ کارپێکردنی ئەپەکە: Authentication (چوونەژوورەوەی بەکارهێنەر)، Firestore (بنکەدراوەی بەڵگەنامەیی NoSQL)، Realtime Database (NoSQL، گۆڕانکاریی زیندوو)، SQL Connect (بنکەدراوەی پەیوەندیدار، PostgreSQL)، Cloud Storage (وێنە و فایلەکانی بەکارهێنەران)، Cloud Functions (کۆدی خۆت لەسەر ڕاژەکار)، Hosting و App Hosting (تۆڕگە و بەرنامەی وێب)، App Check (ڕێگری لە داواکاریی ساختە)، Firebase AI Logic (ژیریی دەستکردی Gemini لەنێو ئەپدا)، Extensions (پاشکۆی ئامادە)، Phone Number Verification. Run، بۆ چاودێری و گەشەپێدانی ئەپەکە: Crashlytics (ڕاپۆرتی لەکارکەوتن)، Google Analytics (بەکارهێنەرەکان چۆن ئەپەکە بەکار دەهێنن)، Performance Monitoring (ئەپەکە چەند خێرایە)، Test Lab (تاقیکردنەوەی نەرمەواڵە لەسەر ئامێری ڕاستەقینە)، App Distribution (وەشانی تاقیکردنەوە)، Remote Config (گۆڕینی ڕێکخستن بەبێ نوێکردنەوە)، A/B Testing (بەراوردی دوو وەشان)، Cloud Messaging (ئاگادارکردنەوەکان)، In-App Messaging (نامە لەنێو ئەپدا). تێبینییەک: Dynamic Links لە ٢٥ی ئابی ٢٠٢٥ داخرا؛ وێنە کۆنەکانی Firebase هێشتا پیشانی دەدەن.
Firebase products in October 2026, grouped as on firebase.google.com.بەرهەمەکانی Firebase لە ئۆکتۆبەری ٢٠٢٦، وەک لە ⁦firebase.google.com⁩ گرووپ کراون.CêIT
Quick checkپشکنینی خێراWhich Firebase product helps you find out why the app closes suddenly on users' phones?کام بەرهەمی Firebase یارمەتیت دەدات بزانیت بۆچی لەسەر مۆبایلی لەناکاو دادەخرێت؟

Google Analytics for Firebase⁦Google Analytics⁩ بۆ Firebase

Google Analytics for Firebase is a free app measurement solution. It gives insight into how people use an app and how engaged they are. It shows data about user behaviour in iOS and Android apps (and today also web, Flutter, Unity and C++ apps), so the team can make better decisions about the product and about marketing.

⁦Google Analytics⁩ بۆ Firebase ئامرازێکی بێبەرانبەرە بۆ پێوانەکردنی . پیشانی دەدات خەڵک چۆن بەکار دەهێنن و چەند بە بەردەوامی بەکاری دەهێنن. دەربارەی ڕەفتاری لە iOS و Android (و ئەمڕۆ هەروەها وێب، ، Unity و ⁦C++⁩) پیشان دەدات، بۆیە تیمەکە دەتوانێت بڕیاری باشتر دەربارەی بەرهەم و بازاڕکردن بدات.

In it you can see crash data, how well notifications work, how deep links perform, in-app purchase data and more. The lecture calls adding analytics "a crucial step toward app success": without measuring, a team only guesses what users do.

تێیدا دەتوانیت ، چەند باش کارکردنی ، ئەنجامی ، و زیاتر ببینیت. وانەکە زیادکردنی بە «هەنگاوێکی گرنگ بەرەو سەرکەوتنی » ناو دەبات: بەبێ پێوانەکردن، تیمێک تەنها مەزەندە دەکات چی دەکەن.

  • Understanding user behaviour: which screens people open, where they stop.
  • User segmentation: groups of users (audiences), for example "ordered this week", built from device data, events or user properties.
  • Event tracking: many events are recorded automatically; you can add your own, such as order_placed.
  • Free and unlimited: free, with unlimited reporting on up to 500 distinct events.
  • Integration with other Firebase services: Crashlytics, Cloud Messaging, Remote Config and BigQuery.
  • تێگەیشتن لە ڕەفتاری : خەڵک کام شاشانە دەکەنەوە و لە کوێ دەوەستن.
  • دابەشکردنی بۆ گرووپ: گرووپی ، بۆ نموونە «ئەم هەفتەیە داوایان کردووە»، کە لە ئامێر، یان تایبەتمەندییەکانی دروست دەکرێن.
  • بەدواداچوونی : زۆر خۆکارانە تۆمار دەکرێن؛ دەتوانیت هی خۆتیش زیاد بکەیت، وەک order_placed.
  • بێبەرانبەر و بێسنوور: بێبەرانبەرە، لەگەڵ ڕاپۆرتی بێسنوور بۆ تا ٥٠٠ جیاواز.
  • تێکەڵبوون لەگەڵ خزمەتگوزارییەکانی تری Firebase: Crashlytics، ⁦Cloud Messaging⁩، ⁦Remote Config⁩ و BigQuery.
Quick checkپشکنینی خێراA bakery app records an event each time someone orders bread. Which advantage of analytics is this? نانەواخانە هەر جارێک کەسێک داوای نان دەکات تۆمار دەکات. ئەمە کام سوودی ؟

Google Analytics for Firebase⁦Google Analytics⁩ بۆ Firebase

The real limit, and privacyسنووری ڕاستەقینە و تایبەتێتی

Quick checkپشکنینی خێراWhat is the exact limit of Google Analytics for Firebase?سنووری وردی ⁦Google Analytics⁩ بۆ Firebase چییە؟

Common mistakesهەڵە باوەکان

MistakeهەڵەWhat is trueڕاستییەکە
"The cloud is a place with no computers."«هەور شوێنێکە کە کۆمپیوتەری تێدا نییە.»The cloud is other people's servers in data centres, reached over the internet.هەور کەسانی ترە لە ، کە لە ڕێگەی پێیان دەگەیت.
"With a BaaS I do not need to think about security."«لەگەڵ پێویست ناکات بیر لە بکەمەوە.»The app talks to the database directly; your security rules decide who can read and write. ڕاستەوخۆ قسە لەگەڵ دەکات؛ یاساکانی خۆت بڕیار دەدەن کێ دەتوانێت بخوێنێتەوە و بنووسێت.
"Firebase is only for Flutter."«Firebase تەنها بۆ .»It works for Android, iOS, the web, Flutter, Unity and C++.بۆ Android، iOS، وێب، ، Unity و ⁦C++⁩ کار دەکات.
"Firebase's databases are relational."« Firebase پەیوەندیدارن.»Firestore and the Realtime Database are NoSQL; SQL Connect is the relational option.Firestore و ⁦Realtime Database⁩ ؛ ⁦SQL Connect⁩ بژاردە پەیوەندیدارەکەیە.
"Analytics is unlimited in every way."« لە هەموو ڕوویەکەوە بێسنوورە.»Unlimited reporting, but on up to 500 distinct events.ڕاپۆرتی بێسنوور، بەڵام بۆ تا ٥٠٠ جیاواز.
Planning a new app around Dynamic Links.پلاندانانی نوێ لەسەر ⁦Dynamic Links⁩.It shut down on 25 August 2025; use App Links and Universal Links.لە ٢٥ی ئابی ٢٠٢٥ داخرا؛ ⁦App Links⁩ و ⁦Universal Links⁩ بەکاربهێنە.
"BaaS is always cheaper."« هەمیشە هەرزانترە.»It is cheap to start; costs grow with users, and leaving later can be expensive.دەستپێکردنی هەرزانە؛ تێچوو لەگەڵ زیاد دەبێت و دواتر جێهێشتنی دەکرێت گران بێت.

Exercisesڕاهێنانەکان

ExerciseڕاهێنانMatch the jobsکارەکان بگونجێنە

A class-notes app needs: (a) sign-in with the student's e-mail; (b) notes shared by the whole class, updating live; (c) PDF files of the lectures; (d) a message to every phone when a new note is added; (e) reports when the app crashes. Which back-end job is each, and which Firebase product does it?

تێبینیی پۆل پێویستی بەمانەیە: (أ) بە قوتابی؛ (ب) تێبینیی هاوبەش بۆ هەموو پۆلەکە کە زیندوو نوێ دەبێتەوە؛ (ج) PDFـی وانەکان؛ (د) نامەیەک بۆ هەموو مۆبایلێک کاتێک تێبینییەکی نوێ زیاد دەکرێت؛ (هـ) ڕاپۆرت کاتێک لەکار دەکەوێت. هەر یەکەیان کام کاری و کام بەرهەمی Firebase دەیکات؟

Show answerوەڵامەکە پیشان بدە
NeedپێویستیBack-end jobکاری Firebase productبەرهەمی Firebase
(a) sign-in(أ) Know who the user isزانینی ئەوەی کێیەAuthentication
(b) shared live notes(ب) تێبینیی هاوبەشی زیندووStore shared dataهەڵگرتنی هاوبەشCloud Firestore
(c) PDF files(ج) PDFKeep users' filesهەڵگرتنی بەکارهێنەرانCloud Storage
(d) new-note message(د) نامەی تێبینیی نوێSend notificationsناردنی Cloud Messaging
(e) crash reports(هـ) ڕاپۆرتی Measure and reportپێوانە و ڕاپۆرتCrashlytics
ExerciseڕاهێنانOwn server or BaaS?ڕاژەکاری خۆت یان BaaS؟

Choose and give one reason: (a) a two-week student project; (b) a bank app that must keep data in its own country and control every line of server code; (c) a start-up with two developers that hopes to grow fast.

هەڵبژێرە و یەک هۆکار بدە: (أ) پڕۆژەیەکی قوتابی بۆ دوو هەفتە؛ (ب) بانک کە دەبێت لە وڵاتی خۆیدا هەڵبگرێت و کۆنترۆڵی هەموو دێڕێکی کۆدی بکات؛ (ج) کۆمپانیایەکی تازە بە دوو کە هیوای گەشەی خێرای هەیە.

Show answerوەڵامەکە پیشان بدە
  • (a) BaaS: a working back end in days, and the free plan is enough.
  • (b) Its own servers (or a cloud provider's servers it controls): it needs full control over code and data location.
  • (c) Usually BaaS to start quickly, while keeping an eye on costs and vendor lock-in as it grows.
  • (أ) : لە چەند ڕۆژێکدا ئامادە دەبێت و پلانە بێبەرانبەرەکە بەسە.
  • (ب) خۆی (یان کە کۆنترۆڵیان دەکات): کۆنترۆڵی تەواوی کۆد و شوێنی پێویستە.
  • (ج) زۆرجار بۆ دەستپێکی خێرا، بە ئاگاداربوون لە تێچوو و لە کاتی گەشەکردندا.
Quick checkپشکنینی خێراWhich Firebase product keeps users' photos and PDF files?کام بەرهەمی Firebase وێنە و PDFـی هەڵدەگرێت؟

Exercisesڕاهێنانەکان

More exercisesڕاهێنانی زیاتر

ExerciseڕاهێنانRead the lecture's diagramهێڵکارییەکەی وانەکە بخوێنەوە

In three sentences, explain the lecture's "Firebase and Flutter architecture" picture: the traditional path and the Firebase path. Why is the name a little misleading?

بە سێ ڕستە وێنەی «تەلارسازیی Firebase و Flutter»ی وانەکە ڕوون بکەرەوە: ڕێگا کۆنەکە و ڕێگای Firebase. بۆچی ناوەکەی کەمێک هەڵخەڵەتێنەرە؟

Show answerوەڵامەکە پیشان بدە

Traditionally the client app calls an HTTP API on servers you build and run, and those servers use the database and other cloud services. With Firebase the client app uses the Firebase SDK and talks to Firebase's services directly, so you do not write the API or run the servers. The name says "Flutter", but the picture is the same for any client app: Android, iOS, web or Flutter.

بە شێوەی کۆن HTTP بانگ دەکات لەسەر ئەو خۆت دروستیان دەکەیت و بەڕێوەیان دەبەیت؛ ئەو و خزمەتگوزارییەکانی تری هەور بەکار دەهێنن. لەگەڵ Firebase، Firebase بەکار دەهێنێت و ڕاستەوخۆ قسە لەگەڵ خزمەتگوزارییەکانی Firebase دەکات، بۆیە نانووسیت و بەڕێوە نابەیت. ناوەکە دەڵێت «Flutter»، بەڵام وێنەکە بۆ هەموو وەک یەکە: Android، iOS، وێب یان .

ExerciseڕاهێنانFix the claimبانگەشەکە چاک بکەرەوە

The notes say Firebase has four product categories (Build, Release & Monitor, Analytics, Engage) and that Analytics is "free and unlimited". Rewrite both sentences so they are true in 2026.

تێبینییەکان دەڵێن Firebase چوار پۆلی بەرهەمی هەیە (Build، ⁦Release & Monitor⁩، Analytics، Engage) و Analytics «بێبەرانبەر و بێسنوور»ـە. هەردوو ڕستەکە دووبارە بنووسەوە بۆ ئەوەی لە ٢٠٢٦دا ڕاست بن.

Show answerوەڵامەکە پیشان بدە

"Firebase's product page groups its products into two groups, Build and Run." "Google Analytics for Firebase is free, with unlimited reporting on up to 500 distinct events."

«لاپەڕەی بەرهەمەکانی Firebase بەرهەمەکانی دەکاتە دوو گرووپ: Build و Run.» «⁦Google Analytics⁩ بۆ Firebase بێبەرانبەرە، لەگەڵ ڕاپۆرتی بێسنوور بۆ تا ٥٠٠ جیاواز.»

Quick checkپشکنینی خێراWhich statement about mobile cloud computing is true?کام ڕستە دەربارەی ڕاستە؟

Summaryپوختە

  • Cloud computing delivers storage, processing, databases and software over the internet, on demand; you pay for what you use.
  • Mobile cloud computing uses the cloud to deliver mobile apps: shared data, backups, the same data on every device, less load on the phone.
  • A back end stores shared data, knows the user, keeps files, runs trusted code, sends notifications and reports.
  • A BaaS such as Firebase gives these as ready services through an SDK. You gain speed; you watch security rules, costs and vendor lock-in.
  • Firebase today: Build and Run groups; Firestore and Realtime Database are NoSQL, SQL Connect is relational; Dynamic Links closed in 2025; Analytics is free with unlimited reporting on up to 500 distinct events.
  • ، ، و لە ڕێگەی و کاتی پێویست دەگەیەنێت؛ پارەی ئەوە دەدەیت کە بەکاری دەهێنیت.
  • هەور بەکار دەهێنێت بۆ گەیاندنی مۆبایل: هاوبەش، ، هەمان لەسەر هەموو ئامێرێک و بارێکی کەمتر لەسەر مۆبایل.
  • هاوبەش هەڵدەگرێت، دەناسێت، هەڵدەگرێت، کۆدی متمانەپێکراو کارا دەکات، دەنێرێت و ڕاپۆرت دەدات.
  • وەک Firebase ئەمانە وەک خزمەتگوزاریی ئامادە لە ڕێگەی دەدات. خێرایی بەدەست دەهێنیت؛ ئاگاداری یاساکانی ، تێچوو و دەبیت.
  • Firebase ئەمڕۆ: گرووپەکانی Build و Run؛ Firestore و ⁦Realtime Database⁩ ، ⁦SQL Connect⁩ پەیوەندیدارە؛ ⁦Dynamic Links⁩ لە ٢٠٢٥ داخرا؛ Analytics بێبەرانبەرە لەگەڵ ڕاپۆرتی بێسنوور بۆ تا ٥٠٠ جیاواز.
Review questionsپرسیارەکانی پێداچوونەوە
Why can't the app's important rules live only on the phone?بۆچی یاسا گرنگەکانی ئەپەکە ناتوانن تەنها لەسەر مۆبایلەکە بن؟

Because the user controls the phone and can change the app; prices, payments and permissions must be checked on a server or by security rules.

چونکە کۆنترۆڵی مۆبایلەکە دەکات و دەتوانێت بگۆڕێت؛ نرخ، پارەدان و دەبێت لەسەر یان بە یاساکانی بپشکنرێن.

What is the main difference between the traditional back end and a BaaS in the lecture's picture?جیاوازیی سەرەکیی نێوان بەشی پشتەوەی کۆن و BaaS لە وێنەکەی وانەکەدا چییە؟

Traditionally the app calls your own API and servers; with a BaaS it uses the provider's SDK and talks to ready services.

بە شێوەی کۆن و خۆت بانگ دەکات؛ لەگەڵ ، دابینکەرەکە بەکار دەهێنێت و قسە لەگەڵ خزمەتگوزارییە ئامادەکان دەکات.

Name one risk of BaaS that the Dynamic Links story shows.یەک مەترسیی BaaS بڵێ کە چیرۆکی ⁦Dynamic Links⁩ پیشانی دەدات.

A provider can retire a product, and apps that depend on it must move: vendor lock-in.

دابینکەرێک دەتوانێت بەرهەمێک ڕابگرێت و ئەو پشتی پێ دەبەستن دەبێت بگوازرێنەوە: .

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

App State and Declarative UIدۆخ و ڕووکاری وەسفی

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.