Softwr

API Management · head to head

AWS API Gateway vs PostHog

AWS API Gateway logo

AWS API Gateway

API Management

Fully managed API gateway service for creating and managing APIs at scale

From
Free
Rated
-
PostHog logo

PostHog

Technology

The single platform to analyze, test, observe, and deploy new features

From
Free
Rated
-

The short version

  • Each has a real cost: AWS API Gateway rEST APIs cost $3.50 per million calls against $1.00 for HTTP APIs, so the older and more featureful type is three and a half times dearer; PostHog the free tier covers 1M events, 5K web session recordings and 2.5K mobile recordings per month before usage-based billing starts
  • They diverge on capability: AWS API Gateway covers REST APIs, PostHog covers Product analytics.

Where they differ

Only the attributes on which AWS API Gateway and PostHog actually diverge.

Attributes where AWS API Gateway and PostHog differ
AttributeAWS API GatewayPostHog
PlatformsAWS CloudWeb, Ios, Android, Api
CategoryAPI ManagementTechnology
Founded20062020

Identical on both: starting price (Free), pricing model (usage-based), free tier (Yes), user rating (Not yet rated).

What each one covers

Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS API Gateway

  • REST APIs
  • WebSocket APIs
  • HTTP APIs
  • Lambda
  • EC2
  • DynamoDB
  • CloudWatch
  • IAM

Only in PostHog

  • Product analytics
  • Session recording
  • Feature flags
  • A/B testing
  • Heatmaps
  • SQL access
  • Data warehouse
  • Apps platform

What people use each for

The jobs each tool is most often brought in to do.

AWS API Gateway

  • Fronting Lambda functions with an HTTP endpointnot PostHog
  • REST and HTTP API management with throttling and keysnot PostHog
  • WebSocket APIs for real-time clientsnot PostHog
  • Private APIs reachable only inside a VPCnot PostHog
  • Publishing a developer portal for API consumersnot PostHog

PostHog

  • Product analyticsnot AWS API Gateway
  • Feature experimentationnot AWS API Gateway
  • User behavior trackingnot AWS API Gateway
  • A/B testingnot AWS API Gateway
  • Debug production issuesnot AWS API Gateway

Where each one falls short

Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS API Gateway

  • REST APIs cost $3.50 per million calls against $1.00 for HTTP APIs, so the older and more featureful type is three and a half times dearer
  • Data transfer out is charged at $0.09 per GB on top of request pricing
  • WebSocket APIs bill connection minutes as well as messages, at $0.25 per million minutes
  • Private APIs avoid data transfer charges but incur AWS PrivateLink costs instead
  • The developer portal is $125 a month, with additional portal products at $12.50 each
  • The free tier lasts 12 months rather than being ongoing

PostHog

  • The free tier covers 1M events, 5K web session recordings and 2.5K mobile recordings per month before usage-based billing starts
  • Accounts without a card on file are limited to 1 project; adding one raises it to 6
  • Data retention is 1 year until a card is added, which extends it to 7 years
  • Support is community-only until the account is on a paid plan
  • Error tracking is capped at 100K exceptions and surveys at 1500 responses per month on the free tier

Pricing, plan by plan

AWS API Gateway

Free
  • Free TierFree
    • 1M requests per month
    • Basic API management
  • Pay-as-you-go$3.5/per 1M requests
    • Unlimited requests
    • HTTP APIs
    • REST APIs

PostHog

Free
  • FreeFree
    • 1M events/month
    • 5K sessions/month
    • Unlimited users
  • Paid$undefined/month
    • $0.00031/event
    • $0.005/session
    • Advanced permissions
  • Enterprise$undefined/month
    • SAML SSO
    • Advanced security
    • Dedicated support

Which should you pick?

Choose AWS API Gateway if

  • You need rest apis.
  • You want to start without paying.
  • You work on AWS Cloud.
  • You also want websocket apis.

Choose PostHog if

  • You need product analytics.
  • You want to start without paying.
  • You work on Web, Ios, Android, Api.
  • You also want session recording.

Questions people ask

Is AWS API Gateway or PostHog better?
Neither clearly leads. AWS API Gateway starts at Free and PostHog at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, AWS API Gateway or PostHog?
AWS API Gateway starts at Free and PostHog at Free.
Does AWS API Gateway or PostHog run on more platforms?
AWS API Gateway runs on AWS Cloud. PostHog runs on Web, Ios, Android, Api.
Can I use AWS API Gateway for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS API Gateway best used for?
AWS API Gateway is most often used for fronting lambda functions with an http endpoint, rest and http api management with throttling and keys, websocket apis for real-time clients, private apis reachable only inside a vpc. Of those, fronting lambda functions with an http endpoint and rest and http api management with throttling and keys are not what PostHog is typically brought in for.
What can AWS API Gateway do that PostHog cannot?
AWS API Gateway covers REST APIs, WebSocket APIs, HTTP APIs, Lambda. PostHog covers Product analytics, Session recording, Feature flags, A/B testing.

Related pages

Other head to heads