Junior — Middle
Tell us about the architecture of the system you implemented in your last project.
sobes.tech AI
Answer from AI
In my last project, I implemented a microservices architecture using Python with Flask to create REST APIs. Each microservice was responsible for a specific business logic and interacted with others via HTTP requests. PostgreSQL was used for data storage, and Redis for caching. The entire system was deployed in Docker containers, which facilitated scalability and service isolation.
Here's an example of a simple Flask microservice:
from flask import Flask, jsonify
app = Flask(__name__)
@app.route('/status')
def status():
return jsonify({'status': 'ok'})
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
This approach made it easy to add new features and maintain the system in the long term.