Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-user notification with HouseNotification model #102

Open
Tracked by #70
Yukaii opened this issue Mar 20, 2023 · 0 comments
Open
Tracked by #70

Multi-user notification with HouseNotification model #102

Yukaii opened this issue Mar 20, 2023 · 0 comments

Comments

@Yukaii
Copy link
Owner

Yukaii commented Mar 20, 2023

About the new house crawling mechanism

The house store stores the most recent data. There are two types of cron jobs to perform crawling:

  • Main Job: Crawl the default raw query (including all new houses) every 3 minutes.
  • Subscription Jobs: Extract and create unique subscription queries for each channel, execute them independently, and then send out notifications. The frequency of execution may vary according to the user's plan.

New notification system

Notification is sent per channel. So we need new models for sending notification.

  • Subscription <-- hasMany --> ChannelNotification <-- hasMany --> House
erDiagram
  Subscription ||--o{ ChannelNotification : hasMany
  House ||--o{ ChannelNotification : hasMany
Loading
@Yukaii Yukaii mentioned this issue Mar 20, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant