How does GraphQL handle real-time data and subscriptions?

  • By using WebSocket connections
  • Through frequent polling of the server
  • By establishing direct database connections
  • Using long-polling techniques
GraphQL handles real-time data and subscriptions using WebSocket connections. This allows the server to push data updates to clients, providing real-time capabilities. WebSocket connections are more efficient and responsive compared to frequent polling (Option B) or long-polling (Option D). Direct database connections (Option C) are not typically used due to security and scalability concerns.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *