You are developing a web application where the front-end needs to continuously receive real-time updates from the Python back-end. Which technology would you use to implement this functionality?
- AJAX
- GraphQL
- REST API
- WebSocket
To achieve real-time updates from the back-end, WebSocket is the preferred technology. It provides full-duplex communication channels over a single TCP connection, making it suitable for real-time applications.
Loading...
Related Quiz
- How can you use the unittest framework to confirm that a specific exception is raised by a piece of code?
- Which Python built-in function would you use to find the type of a variable?
- In pytest, the ____ fixture is used to pass command-line options to test functions.
- When creating a test case in the unittest framework, which method is used to contain the individual tests that the test runner will execute?
- Which of the following is the correct way to define a variable x with the value 10 in Python?