Meskipun memiliki beberapa kemampuan yang serupa, Integration dan Alur Kerja Aplikasi
ditargetkan untuk penggunaan yang berbeda, dan
dikirimkan secara berbeda.
Jika Anda mengintegrasikan sistem bisnis atau menerapkan proses bisnis,
pertimbangkan untuk menggunakan Integrasi Aplikasi. Jika Anda mengatur
layanan untuk pengembangan aplikasi, pipeline, atau otomatisasi infrastruktur,
pertimbangkan untuk menggunakan Alur Kerja. Anda juga dapat menggunakan keduanya secara bersamaan; misalnya, untuk mengatur pipeline yang mengupdate sistem bisnis pihak ketiga terintegrasi.
Panduan, contoh, dan diagram berbasis kasus penggunaan berikut dapat membantu Anda memilih solusi.
Menggunakan Application Integration
Jika Anda adalah seorang arsitek perusahaan, developer integrasi, atau analis
bisnis, yang memerlukan cara untuk menghubungkan, memetakan, mengubah, dan mengintegrasikan data antara
sistem bisnis seperti Salesforce, ServiceNow, atau database Cloud SQL:
Integrasi Aplikasi sangat ideal untuk mengintegrasikan
aplikasi yang memiliki struktur data yang berbeda dan untuk bertukar data. Library ini menyediakan fungsi transformasi bawaan yang memungkinkan Anda mengonversi data aplikasi sumber agar sesuai dengan skema aplikasi tujuan.
Pertimbangkan untuk menggunakan Integrasi Aplikasi untuk transaksi bisnis real-time, atau memproses transaksi bisnis dalam batch kecil. Atau, jika Anda sudah memiliki aplikasi Google Cloud dan menghadapi tantangan konektivitas karena banyaknya aplikasi SaaS.
Integration Application menawarkan
antarmuka visual tarik lalu lepas
yang memungkinkan Anda membuat seluruh alur integrasi dengan sedikit atau tanpa kode.
Konektor juga memungkinkan Anda memanggil dan melakukan operasi pada berbagai entitas.
Jika Anda memerlukan konektor yang dapat digunakan untuk mengintegrasikan dan memetakan data antara layanan seperti BigQuery dan layanan pihak ketiga seperti ServiceNow: Google Cloud
Konektor Integrasi Aplikasi menyembunyikan kompleksitas
struktur data dan protokol khusus aplikasi. API ini menyediakan antarmuka
standar untuk melakukan operasi pembuatan, pembacaan, pembaruan, dan penghapusan pada
data aplikasi.
Misalnya, koneksi Spanner memungkinkan Anda menyisipkan, membaca, memperbarui, dan menghapus baris dalam tabel Spanner serta menggunakan output yang dihasilkan dalam integrasi. Atau, konektor Oracle DB memungkinkan Anda terhubung ke instance database Oracle dan melakukan operasi database yang didukung.
Contoh: Menggunakan Integrasi Aplikasi untuk memetakan dan mengekstrak data
Diagram berikut menunjukkan contoh penggunaan Integrasi Aplikasi
untuk memetakan dan mengekstrak data dari sistem eksternal:
Pemicu Salesforce berlangganan ke saluran peluang Salesforce. Perubahan data pada peluang Salesforce akan memanggil Integrasi Aplikasi yang mengekstrak status peluang Salesforce. Jika statusnya ditutup, integrasi akan mengekstrak
detail peluang dan menulis data ke instance Cloud SQL menggunakan
konektor. Jika ada perubahan data, tetapi status tetap terbuka, integrasi akan mengirim pesan ke topik Pub/Sub menggunakan konektor.
Menggunakan Alur Kerja
Jika Anda adalah developer, data engineer, atau tim platform cloud, yang memerlukan
cara untuk mengatur layanan secara bersamaan guna membuat aplikasi, mengotomatiskan proses,
atau menerapkan pipeline data dan machine learning:
Alur kerja sangat ideal jika Anda ingin memisahkan logika yang
mengurutkan dan menautkan layanan Anda dari logika bisnis inti. Alur kerja
dapat melakukan urutan operasi di beberapa sistem, menunggu
semua operasi selesai, dan dapat berbasis peristiwa.
Pertimbangkan untuk menggunakan Alur Kerja jika Anda ingin menulis lebih sedikit kode untuk
menentukan infrastruktur aplikasi dan menjalankan layanan yang terikat longgar dalam
urutan yang Anda tentukan: alur kerja. Alur kerja ini dapat menggabungkan layanan
API berbasis HTTP apa pun, sehingga dependensi layanan menjadi eksplisit dan dapat diamati
secara menyeluruh.
Alur kerja terdiri dari serangkaian langkah yang dijelaskan menggunakan
sintaksis Workflows,
dan dapat ditulis dalam YAML atau JSON. Fungsi library standar dan variabel lingkungan bawaan alur kerja memungkinkan Anda membuat argumen dan memproses respons dengan mudah. Konektor dapat digunakan untuk berinteraksi dengan produk
Google Cloud lainnya.
Jika Anda memerlukan konektor yang dapat digunakan untuk menyederhanakan panggilan dan integrasi dengan API Google Cloud lainnya seperti fungsi Cloud Run atau Firestore dalam alur kerja:
Alur kerja memublikasikan konektor ringan dan serverless yang
dapat digunakan untuk terhubung ke API Google Cloud lainnya dalam alur kerja, dan
untuk mengintegrasikan alur kerja Anda dengan produk Google Cloud tersebut. API ini
menyederhanakan layanan panggilan karena menangani pemformatan permintaan untuk
Anda, dan menyediakan metode serta argumen sehingga Anda tidak perlu mengetahui
detail API Google Cloud .
Misalnya, Anda dapat membuat alur kerja yang menggunakan konektor Cloud Translation API untuk menerjemahkan file ke bahasa lain dalam mode batch asinkron dan menyimpan hasilnya di bucket Cloud Storage. Atau, Anda dapat menjalankan alur kerja yang menjalankan beberapa tugas kueri BigQuery secara berurutan, satu per satu.
Contoh: Menggunakan Workflows untuk orkestrasi layanan ringan
Diagram berikut menunjukkan contoh penggunaan Alur Kerja untuk
mengelola layanan:
Saat file diupload ke bucket Cloud Storage, fungsi Cloud Run akan memicu Alur Kerja untuk menjalankan alur kerja: teks dikenali menggunakan Cloud Natural Language API; gambar dan video dikenali menggunakan Cloud Vision API dan Cloud Video Intelligence API; dan tag disimpan serta ditulis ke Firestore.
Menggunakan Application Integration dan Workflows secara bersamaan
Anda dapat menggunakan Integrasi Aplikasi dan
Workflows secara bersamaan untuk mengatur aplikasi dan layanan.
Alur kerja mendukung
konektor ke Application Integration
sehingga Anda dapat menggunakan kedua produk secara bersamaan. Misalnya, Anda dapat melakukan
tindakan di sistem bisnis pihak ketiga dari Alur Kerja menggunakan
Integrasi Aplikasi. Atau, Anda dapat terhubung dengan pengembangan kustom
dari Integrasi Aplikasi menggunakan
Alur Kerja.
Contoh: Menggunakan Integrasi Aplikasi dan Alur Kerja untuk melakukan tindakan dalam sistem bisnis pihak ketiga
Dalam diagram berikut, pengembalian dana untuk konten digital diminta melalui
aplikasi seluler. Alur kerja akan menghapus konten dan
memulai proses pengembalian dana di Integrasi Aplikasi,
menggunakan metode heuristik dan kemungkinan persetujuan manusia. Berdasarkan hasil dari
Integrasi Aplikasi, Alur Kerja
akan memberikan pengembalian dana atau memulihkan konten.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-03 UTC."],[[["\u003cp\u003eApplication Integration is ideal for enterprise architects, integration developers, or business analysts needing to connect, map, transform, and integrate data between business systems, offering a visual interface and built-in transformation functions.\u003c/p\u003e\n"],["\u003cp\u003eWorkflows is designed for developers, data engineers, or cloud platform teams to orchestrate services, build applications, automate processes, or implement data and machine learning pipelines, utilizing a defined syntax in YAML or JSON.\u003c/p\u003e\n"],["\u003cp\u003eApplication Integration connectors simplify data interactions with various applications by providing a standard interface for operations like create, read, update, and delete, abstracting away the complexity of application-specific data structures.\u003c/p\u003e\n"],["\u003cp\u003eWorkflows offers lightweight, serverless connectors to facilitate integration with other Google Cloud APIs, streamlining the interaction and simplifying the need to know the complexities of the Google Cloud API being used.\u003c/p\u003e\n"],["\u003cp\u003eApplication Integration and Workflows can be used together to orchestrate applications and services, allowing for actions in third-party systems or connections with custom development, such as initiating a refund process within a business system.\u003c/p\u003e\n"]]],[],null,["# Choose Application Integration or Workflows\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nChoose Application Integration or Workflows\n===========================================\n\nAlthough Application Integration and Workflows\nshare some similar capabilities, they are targeted for different uses, and are\ndelivered differently.\n\nIf you're integrating business systems or implementing a business process,\nconsider using Application Integration. If you're orchestrating\nservices for application development, pipelines, or infrastructure automation,\nconsider using Workflows. You can also use both together; for\nexample, to orchestrate a pipeline that updates an integrated third-party\nbusiness system.\n\nThe following use case-based guidance, examples, and diagrams can help you\nchoose a solution.\n\nUse Application Integration\n---------------------------\n\n**If you are an enterprise architect, integration developer, or business\nanalyst, who needs a way to connect, map, transform, and integrate data between\nbusiness systems like Salesforce, ServiceNow, or a Cloud SQL database:**\n\n- Application Integration is ideal for integrating\n applications that have differing data structures and for exchanging data. It\n provides built-in\n [transformation functions](/application-integration/docs/data-mapping-functions-reference)\n that let you convert the source application data to fit the destination\n application schema.\n\n- Consider using Application Integration for real-time\n business transactions, or processing business transactions in small batches. Or,\n if you have existing Google Cloud applications and are facing\n connectivity challenges as the result of a large number of SaaS applications.\n\n- Application Integration offers a\n [drag-and-drop visual interface](/application-integration/docs/integrations-ui-layout)\n that lets you create an entire integration flow with little or no code.\n Connectors also allow you to call and perform operations on various entities.\n\n**If you need a connector that can be used to integrate and map\ndata between a Google Cloud service such as BigQuery and a\nthird-party service such as ServiceNow:**\n\n- An Application Integration connector hides the complexity of application-specific data structures and protocols. It provides a standard interface to perform create, read, update, and delete operations on application data.\n- For example, a Spanner connection lets you insert, read, update and delete rows in a Spanner table and use the resulting output in an integration. Or, the Oracle DB connector lets you connect to an Oracle database instance and perform the supported database operations.\n- See the list of [supported connectors](/integration-connectors/docs/connector-reference-overview).\n\n### Example: Using Application Integration to map and extract data\n\nThe following diagram shows an example of using Application Integration\nto map and extract data from an external system:\n\nA Salesforce trigger is subscribed to the Salesforce opportunity channel. Data\nchanges to the Salesforce opportunity invokes\nApplication Integration which extracts the status of the\nSalesforce opportunity. If the status is closed, the integration extracts the\nopportunity details and writes the data to a Cloud SQL instance using\na connector. If there is a data change, but the status remains open, the\nintegration sends a message to a Pub/Sub topic using a connector.\n\nUse Workflows\n-------------\n\n**If you are a developer, data engineer, or cloud platform team, who needs a\nway to orchestrate services together to build applications, process automations,\nor implement data and machine learning pipelines:**\n\n- Workflows is ideal if you want to separate the logic that\n sequences and links your services together from your core business logic. A\n workflow can perform a sequence of operations across multiple systems, waiting\n for all operations to complete, and it can be event-driven.\n\n- Consider using Workflows if you want to write less code to\n specify your application infrastructure and execute loosely-coupled services in\n an order that you define: a *workflow*. These workflows can combine the services\n of any HTTP-based API, making service dependencies explicit and observable\n end-to-end.\n\n- A workflow consists of a series of steps described using the\n Workflows [syntax](/workflows/docs/reference/syntax),\n and can be written in either YAML or JSON. Workflows\n [standard library](/workflows/docs/reference/stdlib/overview) functions\n and built-in environment variables allow you to easily construct arguments and\n process responses. Connectors can be used to interact with other\n Google Cloud products.\n\n**If you need a connector that can be used to simplify calling and integrating\nwith other Google Cloud APIs such as Cloud Run functions or\nFirestore within a workflow:**\n\n- Workflows publishes lightweight, serverless connectors that can be used to connect to other Google Cloud APIs within a workflow, and to integrate your workflows with those Google Cloud products. They simplify calling services because they handle the formatting of requests for you, and provide methods and arguments so that you don't need to know the details of a Google Cloud API.\n- For example, you can create a workflow that use the Cloud Translation API connector to translate files to other languages in asynchronous batch mode and save the results in a Cloud Storage bucket. Or, you can execute a workflow that runs multiple BigQuery query jobs serially, one after the other.\n- Supported connectors include a [connector to Application Integration](/workflows/docs/reference/googleapis/integrations/Overview) so that you can use both products together; in this document, see [Use Application Integration and Workflows together](#use-both). For example, you can create a workflow that triggers and waits for an integration, or any other operation such as updating a Salesforce instance.\n- See the list of [supported connectors](/workflows/docs/reference/googleapis).\n\n| **Note:** To deploy ETL/ELT data pipelines, we recommend using [Cloud Data Fusion](/data-fusion).\n\n### Example: Using Workflows for lightweight service orchestration\n\nThe following diagram shows an example of using Workflows to\norchestrate services:\n\nWhen a file is uploaded to a Cloud Storage bucket, a\nCloud Run function triggers Workflows to execute a\nworkflow: text is recognized using the Cloud Natural Language API; images and videos are\nrecognized using the Cloud Vision API and Cloud Video Intelligence API; and tags\nare saved and written to Firestore.\n\nUse Application Integration and Workflows together\n--------------------------------------------------\n\nYou can use Application Integration and\nWorkflows together to orchestrate applications and services.\nWorkflows supports a\n[connector to Application Integration](/workflows/docs/reference/googleapis/integrations/Overview)\nso that you can use both products together. For example, you can perform an\naction in a third-party business system from Workflows using\nApplication Integration. Or, you can connect with custom\ndevelopment from Application Integration using\nWorkflows.\n\n### Example: Using Application Integration and Workflows to perform an action in a third-party business system\n\nIn the following diagram, a refund for digital content is requested through a\nmobile app. Workflows removes the content and\ninitiates a refund process in Application Integration,\nusing heuristic methods and potentially human approval. Based on the result from\nApplication Integration, Workflows either\ngrants a refund or restores the content.\n\nWhat's next\n-----------\n\n- [Learn more about Application Integration](/application-integration/docs/overview).\n- [Learn more about Workflows](/workflows/docs/overview)."]]