Skip to content

Commit 224a9d4

Browse files
authored
Merge pull request #52 from grycap/152-blog-post-intertwin
Included a Blog Post about interTwin
2 parents cf83418 + 37691ed commit 224a9d4

File tree

3 files changed

+82
-0
lines changed

3 files changed

+82
-0
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: "Digital Twin science made serverless: evolving OSCAR within interTwin"
3+
date: 2025-12-10T09:00:00+01:00
4+
# post image
5+
image: "../../images/blog/post-intertwin/oscar-intertwin.png"
6+
# post type (regular/featured)
7+
type: "featured"
8+
# meta description
9+
description: "Digital Twin science made serverless with OSCAR within InterTwin. Explore how event‑driven dataflows, interactive notebooks, and CWL integration simplify scientific workflows and accelerate research across the cloud continuum."
10+
# post draft
11+
draft: false
12+
---
13+
14+
This post summarizes the work carried out in the [InterTwin](https://intertwin.eu) project to extend the OSCAR serverless platform across the cloud–HPC continuum. We developed [DCNiOS](https://github.com/interTwin-eu/dcnios), a Data Connector through [Apache NiFi](https://nifi.apache.org) for OSCAR, that facilitates the creation of event-driven dataflows connecting storages system like dCache, S3 (via SQS), Kafka, and Rucio, enabled seamless offloading of OSCAR workloads to HPC via interLink, added interactive Jupyter notebooks as exposed services, and integrated [Common Workflow Language (CWL)](https://www.commonwl.org) using [`oscar-python`](https://github.com/grycap/oscar_python) from them.
15+
16+
### Data-driven ingestion with DCNiOS
17+
18+
We built DCNiOS to connect [dCache](http://dcache.org) storage events with OSCAR through Apache NiFi. DCNiOS provides a YAML-based approach and a CLI tool to define and deploy the dataflow that listens to dCache Server-Sent Events (SSE) and triggers OSCAR services.
19+
20+
- What it solves: decouples ingestion rate (dCache) from processing rate (OSCAR) while keeping flows reconfigurable.
21+
- How it’s delivered: a NiFi-based image with SSE client support and reusable process groups.
22+
- Details and screenshots: see our post [Data-driven Processing with dCache, Apache NiFi and OSCAR](/blog/data-driven-processing-with-dcache-nifi-oscar/).
23+
24+
#### New event sources for serverless triggers
25+
26+
We broadened the DCNiOS capabilities to support new event sources for triggering OSCAR services:
27+
28+
- [Amazon S3](https://aws.amazon.com/s3) via [SQS](https://aws.amazon.com/sqs): process object-storage events at scale.
29+
- [Kafka](https://kafka.apache.org/): stream-processing triggers for high-throughput event flows.
30+
- [Rucio](https://rucio.cern.ch): scientific data management events feeding directly into OSCAR services.
31+
32+
These sources are orchestrated through Apache NiFi dataflows and set up with DCNiOS, complementing existing triggers and enabling flexible scientific pipelines.
33+
34+
#### Rucio demo
35+
36+
We showcased triggering OSCAR functions from Rucio events using DCNiOS, enabling data-driven processing directly from scientific data management systems.
37+
38+
{{< youtube XOy9TSFl0H4 >}}
39+
40+
### Offloading OSCAR workloads to HPC with interLink (itwinai use case)
41+
42+
We integrated OSCAR with [interLink](https://interlink-project.dev/) to transparently offload computation from OSCAR clusters to HPC systems. In this setup:
43+
44+
- OSCAR handles the event-driven lifecycle and user-friendly APIs.
45+
- interLink securely offloads pods to HPC under the user’s identity, preserving site policies.
46+
- OIDC-based auth and secure tunneling align with HPC security and networking constraints.
47+
- Storage credentials are propagated from the OSCAR cluster to HPC so data access remains consistent.
48+
49+
![OSCAR and interLink integration architecture](../../images/blog/post-intertwin/workflow.png)
50+
51+
An inference service deployed with [itwinai](https://itwinai.readthedocs.io/latest/) (developed by CERN in InterTwin) demonstrated how HPC compute can be invoked from OSCAR in a serverless manner to perform inference on a generative machine learning model.
52+
53+
{{< youtube NoVCfSxwtX0 >}}
54+
55+
### Interactive work: Jupyter Notebooks as Exposed Services
56+
57+
We added support to deploy Jupyter Notebooks inside OSCAR as exposed services. Users can interactively develop and run workflows using the `oscar-python` library, with the notebook’s working directory mounted on MinIO. This allows a notebook to trigger OSCAR functions directly by writing to storage or calling OSCAR APIs, making iterative experimentation simple and reproducible.
58+
59+
- Feature docs: https://docs.oscar.grycap.net/latest/exposed-services/
60+
- Library: https://pypi.org/project/oscar-python/
61+
62+
In the following video, we walk through the process of deploying interactive Jupyter notebooks inside OSCAR and then seamlessly launching a CWL workflow from within the notebook environment.
63+
64+
{{< youtube EgdDqHmcstQ >}}
65+
66+
### EURAC: Drought early warning from a notebook
67+
68+
With EURAC, we demonstrated triggering OSCAR services for drought early warning directly from a Jupyter notebook, validating the interactive, event-driven pattern in a real scientific context.
69+
70+
{{< youtube jjiS-Mt9sds >}}
71+
72+
### CWL integration with `oscar-python` (Deltares FloodAdapt)
73+
74+
We enabled the execution of CWL pipelines that call OSCAR services by embedding Python steps using `oscar-python` into users’ CWL workflows. With Deltares’ FloodAdapt digital twin (focused on compound flood risk assessment and rapid scenario evaluation), we demonstrated how CWL can orchestrate OSCAR services end-to-end.
75+
76+
{{< youtube owvBLRTBAPQ >}}
77+
78+
### Closing remarks
79+
80+
InterTwin helped us push OSCAR beyond cloud-only serverless by connecting it to HPC through interLink, streamlining interactive development with notebooks, and widening event-driven integrations. Together, these capabilities simplify building scalable, policy-compliant AI and simulation pipelines across the compute continuum, right where research needs them most.
81+
82+
[OSCAR](https://grycap.github.io/oscar/) is developed by the [GRyCAP](https://www.grycap.upv.es/) research group at the [Universitat Politècnica de València](https://www.upv.es/). This work was supported by the project “An interdisciplinary Digital Twin Engine for science’’ (interTwin) that has received funding from the European Union’s Horizon Europe Programme under Grant 101058386.
1.39 MB
Loading
1.44 MB
Loading

0 commit comments

Comments
 (0)