# Learning Palantir Foundry
🚀 Put business logic right on the ontology. Functions cure the "numbers don't match across departments" problem by centralizing logic in one place.
📌 Title and Feature URL
Title: ファンクション
URL:
📝 Overview
Functions let you write server-side logic that executes in isolated environments, powering operational apps like dashboards and decision-support tools. They are designed to work with Foundry ontologies, so they can read object properties, traverse links, and perform flexible ontology edits.
🔧 How It Works
- Supported languages: TypeScript (full feature support) and Python (beta, with growing support especially for serverless and deployed execution).
- Serverless execution: spins up on demand when invoked and bills only during execution, with a 60-second total wall-clock timeout (30s CPU plus a 30s network buffer). Multiple versions can run simultaneously, making upgrades safer.
- Deployed execution: reserves dedicated resources for cases serverless cannot meet, runs a single version at a time, and bills continuously while deployed.
- Capability differences: ontology read/write, Workshop integration, and external API calls work in both languages. Pipeline Builder is Python, while model embedding and semantic search are TypeScript.
🛠 Practical Usage
- Derived properties: display function-computed values as table columns.
- Function-backed Actions: implement complex edits spanning multiple objects.
- Workshop integration: run functions to compute or display variables.
- API gateway: invoke query functions programmatically to reuse the same logic everywhere.
🎯 Use Cases
- Implement derived-KPI logic once and return identical results to Workshop, OSDK, and the API.
- Query external systems to enrich ontology objects.
- Build complex validation or bulk updates as function-backed Actions.
⚠️ Caveats
- The 60-second timeout applies uniformly across execution modes, so optimize for efficiency.
- Available capabilities depend on the invocation context (for example, model embedding and semantic search are TypeScript only), so decide on language early.
#
PalantirFoundry# #
DataEngineering#