E
E
Evgeny Blinkov2020-02-20 12:58:01
Feeds
Evgeny Blinkov, 2020-02-20 12:58:01

How to write a news feed as a feed in a contact?

Hello!
Please help with advice. I need to write a news feed on the site, similar to how it was done on vk.com/feed, but with its own specifics. More precisely, even rewrite, because it already exists, but it is very complicated, I wrote it a long time ago and I really don’t like it.
The site is like a marketplace, it has many users and many different types of pages. Written in php + pure js.
Now it's done like this: each type of page is a context, the user, performing some action on the page (for example, commenting on something), creates an event - user number - context type and context number. Subscriptions are also created in another table for all users who should see this event. Everything seems to be logical, but in fact, due to the many non-standard functionality, it works terribly slowly, it’s difficult to figure it out on your own if you need to add something.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Khegay, 2020-02-20
@khegay

What language? What is your site written in?
For normal operation of such functionality, several things are needed:
- Pagination on the backend with content loading on the front, to achieve speed of action.
- Reactivity. Drawing all events in real time in the DOM tree
- Event handlers that will track the change in something and let you know about it.
In your case, the logic of work is described, but the tools with which you achieved this are not described. Give more information please

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question