Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 766495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T17:03:25+00:00 2026-05-14T17:03:25+00:00

Requirements: multiple sources of input (social media content) into a system multiple destinations of

  • 0

Requirements:

  • multiple sources of input (social media content) into a system
  • multiple destinations of output (social media api’s)
  • sources and destinations WILL be added

some pseudo:

IContentProvider contentProvider = context.getBean("contentProvider");
List<Content> toPost = contentProvider.getContent();

for (Content c : toPost) {
    SocialMediaPresence smPresence = socialMediaService.getSMPresenceBySomeId(c.getDestId());
    smPresence.hasTwitter(); smPresence.hasFacebook(); //just to show what this is
    smPresence.postContent(c); //post content could fail for some SM platforms, but shoulnd't be lost forever
}

So now I run out of steam, I need to know what content has been successfully posted, and if it hasn’t gone too all platforms, or if another platform were added in the future that content needs to go out for it as well (therefore my content provider will need to not only know if content has gone out, but for what platforms). I’m not looking for code, although sample/pseudo is fine… I’m looking for an approach to this problem that I can implement

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T17:03:25+00:00Added an answer on May 14, 2026 at 5:03 pm

    I’d do something like this:

    Store the messages (in their “raw” form) in a table or other persistence structure, associated with their author, and having a timestamp (creation date/time for each message).

    Create an association author/publication channel.

    Create one (or possibly more) queues of “unsent messages”. This queue basic structure is:

       | channelId | MessageId | Status | Last Attempt Timestamp
    

    So assuming I am Pamar, and I am subscribing to Twitter, GBuzz and LinkedIn, when I “post” something on your system I get an entry in the main message table, and the new message gets ID = 7686956
    Let’s suppose that the message was created at 13:05:06 on 20100428

    After having created it, 3 records are added in the queue:

       | channelId | MessageId | Status | Last Attempt Timestamp
       | LinkedIn  | 7686956   | New    | 20100428 13:05:06
       | Twitter   | 7686956   | New    | 20100428 13:05:06
       | Gbuzz     | 7686956   | New    | 20100428 13:05:06 
    

    (note that while I wrote “LinkedIn” I expect to have a record Id there and not a string)

    Now, you will have one process getting records from this queue (or maybe one or multiple process for every channel, your choice how you want to scale this) accessing the queue, possibly sorted from oldest attempt to newest – this “worker” thread attempts to post on external channel, updates the last attempt timestamp, and sets the status (OK, Failed).
    Another worker can delete “OK” records in the background.

    Now, what happens when you add “Facebook” to my list of channels?

    Easy, this operation will have a timestamp, too – the moment you add the Facebook channel to my user. You access the message table and dump all messages created before this timestamp in the queue:

       | channelId | MessageId | Status | Last Attempt Timestamp
       | Facebook  | 7685963   | New    | 20100429 11:12:08
       | Facebook  | 7680064   | New    | 20100429 11:12:08
       | Facebook  | 7697046   | New    | 20100429 11:12:08 
    

    When you “inject” these messages for the new channel you can decide the rules, for example, only messages from the last week, so that the “throttling” is implicit.

    Adding a completely new channel will require adding a couple records in the structure, and developing a worker or a strategy class to connect to the new channel and post there using the relevant login profile and the correct API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Requirements : I have a Python project which parses data feeds from multiple sources
I have a requirement that in a webpage I have multiple block of content
Requirements Project should contain 1 main application and some secondary sub applications (which uses
My requirements are that Ads have a definite size, could be different media types
for a current webapp i need a outlook-like calendar... Here are some requirements for
I can imagine system of how can multiple programmers work intensive on same codebase
Need to load data from a single file with a 100,000+ records into multiple
Need to load data from a single file with a 100,000+ records into multiple
I'm working to establish a source control solution that will allow multiple vendors to
Trying to choose a PHP open source CMS into which I will integrate an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.