Senior software engineer at Getir·
Needs advice
on
GolangGolangPHPPHP
and
PythonPython

Hi

I want to build a tool to check asset availability (video, images, etc.) from third-party vendors. These vendors have APIs. However, this process should run daily basis and update the database with the status. This is a kind of separate process. I need to know what will be the good approach and technology for this?

READ LESS
13 upvotes·378.2K views
Replies (5)
365 Consulting Services Ltd.·
Recommends
on
Python

hi - I think this depends on how you want to provide the information to the user. If you want to build a Wordpress-plugin: PHP If you want to build your own website: Python+Django / PHP / JavaScript+Node.js As Desktop application?

READ MORE
7 upvotes·3 comments·377K views
Peter Vereshagin
Peter Vereshagin
·
March 28th 2021 at 6:14PM

Piusha, I can tell you how I implement this on my projects. I have the message queue and task scheduler the same daemon on my micrioservices which is controlled by REST API , has limitations on requesting stuff, etc. It generates the events, and another my service onboard, the API gateway, has the request fired at that same moment. The scheduler doesn't know how to authorize on vendor's API, what info is needed from there and which is not; but API gateway knows that, performs the job and has the info back to the scheduler. The next great feature of the scheduler is that it sends that same info it received on that same API gateway (or wherever I want, as it's a part of its' particular job description) but to another endpoint - to be stored then.

Among other things such a scheduler is able to repeat the job up to the limit of tries for the case if the latest request fired by that job was unsuccessful.

This comprehenses alot my other approaches, e. g., by Cron daemon built in OS.

The name of the scheduler/message-queue software is: Agenda-Rest, it can be found on github. You also may want to use Bree instead, it should be even better.

·
Reply
piusha kalyana
piusha kalyana
·
May 12th 2021 at 4:15AM

Thank you for your valuble idea. let me explore what you gave as an idea

·
Reply
piusha kalyana
piusha kalyana
·
May 12th 2021 at 4:17AM

thank you

·
Reply
Technical Lead at DPO International·
Recommends
on
PHP

for what technologies you should use, this is depend on what technology do you prefer? your should think best structuing for your code because each API vendor has different to a nother one so it's better no merege code vendores together. your code must be using SOLID principle pattern and some design pattern such as Factory Pattern

READ MORE
3 upvotes·364K views
View all (5)
Avatar of piusha kalyana

piusha kalyana

Senior software engineer at Getir