Hi, I want you to help me architect a software tool. I will describe the functionality…
- User
Hi, I want you to help me architect a software tool. I will describe the functionality and I need you to suggest a stack to build it up from scractch
Assistant
Sounds good, I’m ready to help. What is the tool you’re looking to build?
- User
I have lot of files which have data present in a server. I also have a High Performance Computing Cluster which mounts this data. The cluster has Centos as operating system. It has slurm as a resource management tool . I need a tool/framework to run python scripts in a parallel manner on available nodes and later consolidate all output to a report . The tool should be hosted as a website so end user can select the script of his choice and submit it in a parallel manner. Suggest me a architecture to build this kind of tool.
Assistant
I think you could use a Django based web framework, with a React/Angular frontend. On the backend you could use Celery for the task queue/workflow management, and Slurm for resource management. Does that sound like a good fit for your use case?
- User
Ok fair enough. How to connect the React/Angular Frontend UI with Django based web framework. Need more insights.
Assistant
Sure! The way I've connected React/Angular frontend applications with Django backends is by using the Django Rest Framework (DRF). Django provides a built-in ORM and backend, and when used in conjunction with the Django REST Framework, it becomes very easy to then connect that backend to a frontend application using standard HTTP requests to send and receive JSON data.
Here's a general overview of the architecture you would use:
- Create a Django project/app.
- Add Django Rest Framework as a dependency.
- Define your models/serializers/views in Django to represent your application data/services.
- Set up the Django REST Framework routing for your application services.
- Create a frontend React/Angular app.
- Connect to your Django backend using fetch/axios/angular-http APIs.
This architecture allows for increased flexibility and the ability to quickly change your frontend implementation without having to rewrite your backend. This also allows for a greater choice in presentation library, with many options available in both React and Angular worlds.
Does that help? Happy to answer any other questions you may have.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.