Getting Started with Device Detection🔗
51Degrees Device Detection offers two integration options. Each has different benefits to match your needs:
Choose Your Integration🔗
Cloud Service {#cloud-integration}**Best for:** Quick setup, minimal infrastructure, cost-effective scaling🔗
Benefits:
- No setup needed - No data files or local infrastructure required
- Always updated - Latest device data without manual updates
- Minimal resources - Very low CPU/RAM usage on your servers
- Pay-as-you-go - Cost scales with usage
- Global availability - Multiple data centers for low latency
Things to consider:
- Network dependency - Requires internet connectivity and handles latency (typically 10-50ms)
- External service - Detection processing occurs on 51Degrees infrastructure
Authentication: Requires a Resource Key
On-premise Deployment {#On-premise-integration}**Best for:** High-performance, privacy-sensitive, or offline environments🔗
Benefits:
- Low latency - Microseconds per detection when the data file is held in memory, with no network call
- Complete privacy - All processing stays within your infrastructure
- High throughput - Over 1 million detections per second on an eight-core AWS Graviton3 instance, with the data file in memory (measured results)
- Fast startup - Loads the data file into memory and is ready to detect in under 150 milliseconds on the same Graviton3 instance, which matters most where servers start and stop as demand changes
- Offline capable - No internet dependency for detection
- Full control - Customize update schedules and deployment architecture
Things to consider:
- Setup required - Initial configuration and data file management
- Resource usage - Uses local CPU/RAM (optimized but measurable)
- Update management - Periodic data file updates needed for latest devices (automatic updates available)
Licensing: Requires a License Key
Which Integration Should I Choose?🔗
| Use Case | Recommended | Why |
| Prototyping & Development | Cloud | Fastest setup, no infrastructure overhead |
| Low-volume Production | Cloud | Cost-effective, automatic updates |
| High-traffic Web Servers | On-premise | Maximum performance, cost efficiency at scale |
| Real-time Applications | On-premise | Microsecond latency requirements |
| Edge/CDN Integration | On-premise | Offline capability, minimal latency |
| Privacy-sensitive Applications | On-premise | Data never leaves your infrastructure |
| Variable Traffic Patterns | Cloud | Pay-as-you-go scaling |
Enhanced Accuracy Options🔗
For more accurate results (especially for identifying specific iPhone/iPad models), consider enabling client-side evidence collection.
Language-Specific Integration🔗
Most programming languages support both integration models. Select your language below for detailed setup instructions:
Select a language.
