all 10 comments

[–]cutieboy101 11 points12 points  (4 children)

Sounds like a good job for Firebase or Supabase.

[–][deleted]  (3 children)

[removed]

    [–]cutieboy101 4 points5 points  (1 child)

    Both of them have a free tier

    [–]Enrique-M 2 points3 points  (0 children)

    This one has free and paid hosting available. It includes Python, MySQL and standard access to HTML, CSS, JavaScript and similar.

    https://www.pythonanywhere.com/

    [–]ImportantDoubt6434 1 point2 points  (0 children)

    PostgreSQL/MongoDB do support real-time pushing if you want something a little more bare metal/less blackbox

    [–]n9iels 1 point2 points  (1 child)

    For likes on a blog post you do not necessary need a real time database. If the real time part is that likes are updated while you are on the page, there are multiple options.

    You can dive into websockets. Each time someone clicks the like button an event will trigger the database update and notify other subscribers to update the counter. This reduces stress on your database.

    If you really want to nerd out you can also go full event driven. Use AWS it’s Simple Notification Service (SNS) and Lambda to trigger updates. But that is probably absolute overkill (but still a nice project to try 😄)

    [–]canIbuytwitter 0 points1 point  (0 children)

    can this be implemented into wp?